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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

new socket is opened and bound to the same port as the earlier socket.<br />

Developer Notes<br />

Since <strong>@CHIP</strong>-<strong>RTOS</strong> version 071, the API_OPENSOCKET call sets the SO_REUSEADDR option to '1' as default for<br />

all TCP sockets. So calling this API is no longer necessary.<br />

Top of list<br />

Index page<br />

Interrupt 0xAC service 0x15: API_SETIPTOS, Set IP Type-Of-Service<br />

Parameters<br />

AH<br />

AL<br />

BX<br />

Sets socket's default Type-Of-Service placed in the IP datagram header's TOS field.<br />

0x15 (= API_SETIPTOS)<br />

Type-Of-Service for IP datagrams<br />

Socket descriptor<br />

Return Value<br />

Comments<br />

Top of list<br />

Index page<br />

DX = 0 success<br />

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

The 8 bits in the IP datagram Type-Of-Service field are defined as follows:<br />

Bits 0: unused bit (must be 0)<br />

Bits 1-4: Type of Service, see TCP/IP documentation e.g.<br />

Section 3.2 of "TCP/IP Illustrated, Volume 1" by W. Richard Stevens.<br />

At most one of these four bits is set.<br />

Bits 5-7: "Precedence field" (unused today)<br />

Note: Many routers ignore this IP datagram header field.<br />

Interrupt 0xAC service 0x16: API_SETSOCKOPT, Set options on socket<br />

Parameters<br />

Controls option settings for specfied socket.<br />

Page 118 / 400

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

Saved successfully!

Ooh no, something went wrong!