Chapter 3 Terminal Specific Function Library
169
Syntax
int socket_push (int conno);
int conno; /* connection number */
Example
val = socket_push (conno);
Description
The next TCP segment to be written, following a call to this function, will have
the PSH flag set in the TCP header. This is useful for indicating to the TCP on
the remote system that all internally buffered segments up through this segment
should be delivered to the application as soon as possible.
Return
If successful, it returns 0.
Otherwise, it returns -1.
See Also
socket_fin
socket_rxstat
Purpose
To get the receive status for a connection.
Syntax
int socket_rxstat (int conno);
int conno; /* connection number */
Example
val = socket_rxstat (conno);
Description
The function gets the receive status for a connection.
Return
The return value can be one of the following:
S_EOF
0x01
FIN has been received
S_UNREA
0x02
destination unreachable ICMP
S_FATAL
0x04
fatal error
S_RST
0x08
restart message received
S_SHUTRECV
0x10
receive has been shutdown
(active, not by receiving FIN)
See Also
socket_txstat
socket_rxtout
Purpose
To set the receive timeout for a connection.
Syntax
int socket_rxtout (int conno, unsigned long val);
int conno; /* connection number */
unsigned long val; /* timeout in milli-second */
Example
val = socket_rxtout (conno, timeout);
Description
The function sets the receive timeout for a connection.
Содержание 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...