<< SOCKET_init Socket Toolbox SOCKET_pause >>

Socket Toolbox >> Socket Toolbox > SOCKET_open

SOCKET_open

Open a SOCKET Session

Calling Sequence

SOCKET_open(id,adress,port)

Parameters

id

id is an integer. This is the number of your socket session.

adress

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

port

This is an integer. It is the port you want to connect with.

Description

This function open a new socket session. If the session has been opened before, the former session is closed.

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

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

See Also

Authors


Report an issue
<< SOCKET_init Socket Toolbox SOCKET_pause >>