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.

AH<br />

BX<br />

ES:DI<br />

0x16 (= API_SETSOCKOPT)<br />

Socket descriptor<br />

Pointer to SetSocketOption type that specifies the socket options (see tcpipapi.h)<br />

Return Value<br />

Comments<br />

DX=0 success<br />

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

This API function makes it possible to manipulate options associated with a socket. Prior to calling this<br />

function the caller must fill in a SetSocketOption type data structure.<br />

The socket options of an incoming connection (using accept) will be the same as the socket options from its<br />

listening socket.<br />

See SetSocketOption type definition for example usage of this API function.<br />

Related Topics<br />

Top of list<br />

Index page<br />

GetSocketOption typedef with option names<br />

API_GETSOCKOPT - Get socket options<br />

Interrupt 0xAC service 0x17: API_GETSOCKOPT, Get options on socket<br />

Parameters<br />

AH<br />

BX<br />

ES:DI<br />

Reads out an option setting for a specified socket.<br />

0x17 (= API_GETSOCKOPT)<br />

Socket descriptor<br />

Pointer to GetSocketOption structure<br />

Return Value<br />

Comments<br />

DX = 0 success, Buffer pointed to by the optionValue member of the GetSocketOption<br />

structure at [ES:DI] contains the requested socket option value.<br />

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

Page 119 / 400

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

Saved successfully!

Ooh no, something went wrong!