<< SOCKET_query Socket Toolbox SOCKET_write >>

Socket Toolbox >> Socket Toolbox > SOCKET_read

SOCKET_read

Read on an opened socket session

Calling Sequence

mat = SOCKET_read(id)

Parameters

id

Integer. This is the number of the opened session you want to read.

mat

Matrix of string. This is the response of your query on the selected socket session.

Description

This function enable to read a a 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") or...
SOCKET_write(2,"help");
SOCKET_pause(1.5);
SOCKET_read(2)

SOCKET_query(1,"IP?")

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

See Also

Authors


Report an issue
<< SOCKET_query Socket Toolbox SOCKET_write >>