Metrologic Optimus S Programming Manual page 175

"c" programming guide
Table of Contents

Advertisement

Syntax
int socket_push (int conno);
int conno;
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
To get the receive status for a connection.
Purpose
Syntax
int socket_rxstat (int conno);
int conno;
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
S_UNREA
S_FATAL
S_RST
S_SHUTRECV
socket_txstat
See Also
socket_rxtout
To set the receive timeout for a connection.
Purpose
Syntax
int socket_rxtout (int conno, unsigned long val);
int conno;
unsigned long val;
Example
val = socket_rxtout (conno, timeout);
Description
The function sets the receive timeout for a connection.
Chapter 3 Terminal Specific Function Library
0x01
0x02
0x04
0x08
0x10
/* connection number */
/* connection number */
FIN has been received
destination unreachable ICMP
fatal error
restart message received
receive has been shutdown
(active, not by receiving FIN)
/* connection number */
/* timeout in milli-second */
169

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents