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.

● Interrupt_0xAC_function_0x90:_ADD_IGMP_MEMBERSHIP, Install an IP multicast address entry<br />

● Interrupt_0xAC_function_0x91:_DROP_IGMP_MEMBERSHIP, Delete an IP multicast address entry<br />

● Interrupt_0xAC_function_0x92:_MCASTIP_TO_MACADDR, Map IP multicast address to Ethernet<br />

● Interrupt_0xAC_function_0xA0:_DEV_OPEN_IFACE, Install user device driver<br />

● Interrupt_0xAC_function_0xA1:_DEV_CLOSE_IFACE, Close TCP/IP device driver/interface<br />

● Interrupt_0xAC_function_0xA2:_DEV_RECV_IFACE, Move received data<br />

● Interrupt_0xAC_function_0xA3:_DEV_RECV_WAIT, Wait for received data<br />

● Interrupt_0xAC_function_0xA4:_DEV_NOTIFY_ISR, Signal from ISR<br />

● Interrupt_0xAC_function_0xA5:_DEV_GET_BUF, Get a buffer from TCP/IP stack<br />

● Interrupt_0xAC_function_0xA6:_DEV_SND_COMPLETE, Signal message send complete<br />

● Interrupt_0xAC_function_0xA7:_DEV_WAIT_DHCP_COMPLETE, Wait for DHCP<br />

Interrupt 0xAC service 0x01: API_OPENSOCKET, open a socket<br />

Parameters<br />

AH<br />

AL<br />

Creates an end-point for communication and returns a socket descriptor (i.e. a handle).<br />

0x01 (= API_OPENSOCKET)<br />

type of socket :<br />

AL = 1 (= SOCK_STREAM) ==> TCP<br />

AL = 2 (= SOCK_DGRAM) ==> UDP<br />

Return Value<br />

Comments<br />

DX = 0 success AX: socket descriptor<br />

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

This function provides the BSD socket() functionality.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Close socket API_CLOSESOCKET<br />

Interrupt 0xAC service 0x02: API_CLOSESOCKET, close a socket<br />

Parameters<br />

AH<br />

BX<br />

Closes the socket indicated by BX and releases all of its associated resources.<br />

0x02 (= API_CLOSESOCKET)<br />

Page 106 / 400

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

Saved successfully!

Ooh no, something went wrong!