Documentation
Last update : 31/10/2005

SOCKET_query - Query on an opened RAW SOCKET Session

Calling Sequence

SOCKET_query(id,command,buffer_size)

Description

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

command is a string you want to send to the opened Socket during the query.

buffer_size is an integer. This is the number of character you plane to read during the query.

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)
SOCKET_query(1,"IP?",300)

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

  

See Also

SOCKET_init ,   SOCKET_open ,   SOCKET_close ,   SOCKET_write ,   SOCKET_read ,  

Author

Tibault Reveyrand