Use the SOCKETSETLIST command to list the names of all available socket sets that are currently defined by the application.
This command has no parameters.
If socket sets are defined, this command returns a string that contains 0 and names of the socket sets that are available to the application, for example, 0 subtask1 subtask2. If no socket sets are defined, 0 is returned.
This command has no LE C/C++ equivalent.
/* REXX EZARXR28 */
/*
* This program demonstrates the use of the SOCKSETLIST
* socket command. The program will initialize two socket
* sets and then issue the SOCKSETLIST command to obtain
* some information.
*/
src1=SOCKET("INITIALIZE","MYSET01",10);
Say "RC of INITIALIZATION of MYSET01 = "src1"
src2=SOCKET("INITIALIZE","MYSET02",29);
Say "RC of INITIALIZATION of MYSET02 = "src2"
src=SOCKET("SOCKETSETLIST");
parse var src l_retcode l_socketsets;
Say "Socket sets available are: "l_socketsets;
src=SOCKET("TERMINATE","MYSET01");
src=SOCKET("TERMINATE","MYSET02");
EXIT 0;