Documentation
Last update : 31/10/2005

SOCKET_init() - Initialize the SOCKET Toolbox

Calling Sequence

SOCKET_init()

Description

Initialize an internal array which enables the use of 31 Winsocket with Scilab. You have to run this command only once, when you load the Winsock toolbox.

Examples


// This example is the  "loader.sce" file.
// Basically, you don't have to use SOCKET_init() anywhere else.

// The DLL link

disp("__________________________");
my_file=SCI+"/contrib/SOCKET/routines/Sci_SOCKET.dll";
link(my_file,[	"socket_init";
				"socket_open_session";
				"socket_write";
				"socket_read";
				"socket_close"	],"c");
				
// Load the SCIlab functions
SOCKET=lib(SCI+'/contrib/SOCKET/macros/');

// Load the man pages
%helps=[%helps;SCI+'/contrib/SOCKET/man','SOCKET Toolbox'];

// Initialize the toolbox...
SOCKET_init();

disp("__________________________");
 
  

See Also

SOCKET_open ,   SOCKET_close ,   SOCKET_write ,   SOCKET_read ,   SOCKET_query ,  

Author

Tibault Reveyrand