Documentation
Last update : 31/10/2005

SOCKET_open() - Open a RAW SOCKET Session

Calling Sequence

SOCKET_open(id,IP_adress,Port_number)

Description

Open a RAW SOCKET session.

id is an integer between 1 and 31. This is an arbitrary number you assign to the session.

IP_adress is a character string. This string contain the IP adress of the device you want to connect with.

Port_number is an integer. this is the port you want to connect with.

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_close ,   SOCKET_write ,   SOCKET_read ,   SOCKET_query ,  

Author

Tibault Reveyrand