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.

Top of list<br />

Index page<br />

timeout<br />

If flagsis set to MSG_TIMEOUT, then the maximum number of milliseconds to wait should be specified here.<br />

Route_Entry<br />

typedef struct tag_route_entry{<br />

unsigned long destIPAddress; // The IP address to add the route for<br />

unsigned long destNetmask; // The netmask for the route<br />

unsigned long gateway; // IP address of the gateway of the route<br />

int hops; // Number or routers between this host and route<br />

} Route_Entry;<br />

Related Topics<br />

Top of list<br />

Index page<br />

API function ADD_STATIC_ROUTE - Add a route for an interface<br />

API function DEL_STATIC_ROUTE - Delete a route from an interface<br />

send_params<br />

Comments<br />

struct send_params<br />

{<br />

char far *bufferPtr; // Pointer to send data<br />

int bufferLength; // Number of bytes to send<br />

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

struct sockaddr far *toPtr; // only needed for UDP<br />

int far *tolengthPtr; // only needed for UDP<br />

};<br />

This structure is defined in tcpip.h. The elements are used as follows:<br />

bufferPtr<br />

Pointer to data to be sent.<br />

bufferLength<br />

Number of bytes to be sent from bufferPtr.<br />

flags<br />

Top of list<br />

Index page<br />

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

MSG_BLOCKING: Sleep until data is transferred into the socket transmit queue<br />

MSG_DONTWAIT: Return immediately after loading bytes into available transmit queue space<br />

toPtr UDP only<br />

The referenced structure is cast to a sockaddr_instructureprior to usage. The datagram destination IP address<br />

and port number is specified here by caller.<br />

tolengthPtr UDP only<br />

The 16 bit value referenced by this pointer must be: sizeof(struct sockaddr_in)<br />

Page 176 / 400

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

Saved successfully!

Ooh no, something went wrong!