Documentation
Last update : 31/10/2005

SOCKET_read - Read on an opened RAW SOCKET Session

Calling Sequence

SOCKET_read(id,buffer_size)

Description

id specify the opened RAW Socket Session you want to read. Id is an integer between 0 and 31.

buffer_size is an integer. This is the number of character you plane to read on the Socket.

Examples

SOCKET_open(1,"10.0.0.1",23);	// The session #1 is opened
SOCKET_open(2,"10.0.0.2",23);	// The session #2 is opened

// Now we can communicate with devices...
// SOCKET_query(2,"help",3000) or...
SOCKET_write(2,"help");
SOCKET_read(2,3000)


SOCKET_query(1,"IP?",300)

// TO close every WinSocket session...
SOCKET_close();

  

See Also

SOCKET_init ,   SOCKET_open ,   SOCKET_close ,   SOCKET_write ,   SOCKET_query ,  

Author

Tibault Reveyrand