01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The maximum number (limited to 5) of allowed outstanding connections<br />

Return Value<br />

Comments<br />

DX = 0 success, AX: 0<br />

DX != 0 failure, AX: contains error code<br />

This call is used by a TCP server.<br />

Related Topics<br />

Top of list<br />

Index page<br />

API_ACCEPT - Accept the next incoming connection<br />

Interrupt 0xAC service 0x0F: API_SEND, Transmit TCP message<br />

Parameters<br />

AH<br />

BX<br />

DX:SI<br />

For TCP only, this API transmits a message to another transport end-point.<br />

0x0F (= API_SEND)<br />

Socket descriptor<br />

Pointer to a send_params structure which must be filled in by caller.<br />

Return Value<br />

Comments<br />

DX = 0 success, AX: number of bytes sent<br />

DX != 0 failure, AX: contains error code<br />

API_SEND may be used only if the socket is in a connected state.<br />

On success, the return value in AX contains the number of bytes which were successfully inserted into the<br />

socket's send queue.<br />

Related Topics<br />

API_RECV - Receive TCP data<br />

API_SENDTO - Send UDP datagram<br />

Developer Notes<br />

Since <strong>@CHIP</strong>-<strong>RTOS</strong> 1.00 the MSG_DONTWAIT option is available in the flag member of send_params structure<br />

Page 114 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!