Scilab Function
Last update : 11/09/2008

SOCKET_close - Close a Socket Session

Calling Sequence

SOCKET_close(id)

Parameters

Description

This instruction will close a socket session you have opened with SOCKET_open() function.

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

SOCKET_open,   SOCKET_write,   SOCKET_read,   SOCKET_query,   SOCKET_close,   SOCKET_pause,  

Authors

Tibault REVEYRAND www.reveyrand.fr