SOCKET_init() - Initialize the SOCKET Toolbox
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.
// 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("__________________________");
SOCKET_open , SOCKET_close , SOCKET_write , SOCKET_read , SOCKET_query ,