Metrologic Optimus S Programming Manual page 148

"c" programming guide
Table of Contents

Advertisement

142
"C" Programming Guide For Optimus S/R
Socket Programming Interface
Include File
Note: For relevant structures, please refer to the header file for terminal specific library.
Connection-oriented Protocol (TCP)
#include <errno.h>
This "errno.h file contains the error code definitions, and it should normally be
placed
under
the
"C:\TOSHIBA\INCLUDE\").
For a connection-oriented socket, such as SOCK_STREAM, it provides full-duplex
connection, and must be in a connected state before any data can be sent or received
on it. A connection to another socket is created with connect(). Once connected, data
can be transferred using send() and recv(). When a session has been completed,
closesocket() must be performed.
"include"
directory
of
the
C
compiler
(say,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents