168
"C" Programming Guide For Optimus S/R
Return
If connected, it returns a non-zero value.
Otherwise, it returns 0.
See Also
Nopen
socket_keepalive
Purpose
To set the dummy sending period for a connection.
Syntax
int socket_keepalive (int conno, unsigned long val);
int conno; /* connection number */
unsigned long val; /* dummy sending period in milli-second;
set to 0 to disable dummy sending */
Example
val = socket_keepalive (conno, p);
Description
In some special application, the remote end will auto-disconnect if it never
receives any packet in a certain period of time. This function will send an
empty packet to the remote end to avoid such problem. (TCP only)
Return
If successful, it returns 0.
On error, it returns a negative value. (?)
See Also
socket_noblock
Purpose
To set the connection for non-blocking operation.
Syntax
int socket_noblock (int conno);
int conno; /* connection number */
Example
socket_noblock (conno)
Description
This function sets non-blocking operation.
When in non-blocking operation, calls to network functions, which normally
have to wait for network activity to be completed, will return the negative value
EWOULDBLOCK when such a condition is encountered.
Return
If successful, it returns 0.
On error, it returns a negative value. (?)
See Also
socket_block
socket_push
Purpose
To set the PSH flag on the next outgoing TCP segment.
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...