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.

a new connection.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Close socket API_CLOSESOCKET<br />

Interrupt 0xAC service 0x13: API_SETLINGER, Set linger time on close<br />

Parameters<br />

AH<br />

BX<br />

CX<br />

Applies only to TCP sockets.<br />

0x13 (= API_SETLINGER)<br />

Socket descriptor<br />

Linger time in seconds, default: 60 seconds, 0 means linger turned off.<br />

Return Value<br />

Top of list<br />

Index page<br />

DX = 0 success<br />

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

Interrupt 0xAC service 0x14: API_SETREUSE, Set reuse option on a listening socket<br />

Parameters<br />

AH<br />

BX<br />

Sets SO_REUSEADDR socket option to '1'.<br />

0x14 (= API_SETREUSE)<br />

Socket descriptor<br />

Return Value<br />

Comments<br />

DX =0 success<br />

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

This API applies only to TCP sockets. The reuse option is necessary if a listening socket is closed and then a<br />

Page 117 / 400

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

Saved successfully!

Ooh no, something went wrong!