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 service 0x11: API_INETTOASCII, Convert IP address to IP string<br />

Parameters<br />

AH<br />

BX:SI<br />

ES:DI<br />

Converts an unsigned long IP address to an ASCII dotted decimal IP string.<br />

0x11 (= API_INETTOASCII)<br />

Input Parameter: Pointer to the 32 bit IP address in network byte order<br />

Output Parameter: Pointer to the string buffer, where this function outputs the converted dotted decimal IP<br />

string. This buffer must have space for 17 Bytes!<br />

Return Value<br />

Comments<br />

DX = 0, AX = 0, [ES:DI] buffer contains converted string value<br />

The dotted decimal IP address ASCII string output to [ES:DI] buffer is zero terminated.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Convert ASCII dotted decimal IP address to binary<br />

Interrupt 0xAC service 0x12: API_RESETCONNECTION, Abort a connection on a socket<br />

Parameters<br />

AH<br />

BX<br />

Applies only to TCP sockets.<br />

0x12 (= API_RESETCONNECTION)<br />

Socket descriptor<br />

Return Value<br />

Comments<br />

DX = 0 success AX: 0<br />

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

This API_RESETCONNECTION API does not close the socket, which must be done with<br />

API_CLOSESOCKET.<br />

The reset socket can not be used for a new connection. You must close the socket and open a new one to get<br />

Page 116 / 400

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

Saved successfully!

Ooh no, something went wrong!