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.

Related Topics<br />

❍ optionName=PPP_IPCP_DNS_PRI: Size: 32 bit, sizeof(long) - Specifies the IP addresses of the primary DNS<br />

server we will allow the remote to use or the primary DNS server we want to use. If this option is called with the value<br />

0 and remotelocalflag==PPP_OPTION_WANT, then we allow the connected peer to report their primary DNS<br />

server IP.<br />

❍ optionName=PPP_IPCP_DNS_SEC: Size: 32 bit, sizeof(long) - Specifies the IP addresses of the secondary DNS<br />

server we will allow the remote to use or the secondary DNS server we want to use. If this option is called with the<br />

value 0 and remotelocalflag==PPP_OPTION_WANT, then we allow the connected peer to report their primary DNS<br />

server IP.<br />

API function PPPCLIENT_SET_OPTIONS - Set PPP client options<br />

API function PPPSERVER_SET_OPTIONS - Set PPP server options<br />

API function PPPCLIENT_GET_DNSIP - Get DNS IP<br />

Developer Notes<br />

If the option PPP_IPCP_PROTOCOL (VJ TCP/IP header compression) is set, it can be possible that the FTP server of the<br />

<strong>IPC<strong>@CHIP</strong></strong> is not usable via the PPP interface.<br />

Top of list<br />

Index page<br />

recv_params<br />

Comments<br />

struct recv_params<br />

{<br />

char far *bufferPtr; // Store incoming data here<br />

int bufferLength; // Maximum bytes to store<br />

int flags; // Blocking, timeout or no wait<br />

struct sockaddr far *fromPtr; // Only needed for UDP.<br />

int far *fromlengthPtr; // Only needed for UDP.<br />

unsigned long timeout; // timeout milliseconds<br />

};<br />

This structure is defined in tcpip.h.<br />

bufferPtr<br />

This output parameter specifies the user buffer into which the received data will be placed by the system.<br />

bufferLength<br />

Size of user buffer at bufferPtr, places upper limit on bytes transferred.<br />

flags<br />

Set to one of following constants defined in tcpip.h:<br />

MSG_BLOCKING: Sleep until data comes in<br />

MSG_TIMEOUT : The caller wakes up after timeout or if data comes in. The structure member timeoutmust<br />

be set.<br />

MSG_DONTWAIT: Return immediately<br />

fromPtr UDP only<br />

This is an output parameter. The referenced sockaddrstructureis cast to a sockaddr_instructureprior to<br />

usage. This field will be set by the system inside the API_RECVFROMcall to indicate the origin of the received UDP<br />

data.<br />

fromlengthPtr UDP only<br />

The 16 bit value referenced by this pointer is both an input and output parameter, which should be preset to:<br />

sizeof(struct sockaddr_in)<br />

prior to calling API_RECVFROM.<br />

Page 175 / 400

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

Saved successfully!

Ooh no, something went wrong!