SERVER_SOCKET
|
Syntax: |
SERVER_SOCKET(<Port>,<SSL>,<Macro
Name>[,<IP-Address>])
|
||||||||
|
|
|
||||||||
|
Meaning: |
Opens a server socket at port <Port>. If <SSL> <> 0, a secure SSL
connection is established. For each Client connection coming in at the
port <Port> the Macro <Macroname> is executed. Note that with
several Client connections the Macro <Macroname> is simultaneously
executed several times! SERVER_SOCKET
returns the handle for the Server Socket if no error occurred, otherwise –1. In the case of an error the variable ERRORTEXT$ contains the error report. |
||||||||
|
Parameter: |
|
||||||||
|
Sample: |
HANDLE% = SERVER_SOCKET(2000,1,SERVER.SOCKET.MACRO) IF HANDLE% = -1 THEN … Error … ENDIF |
||||||||
|
See also: |
SERVER_SOCKET_GET_CLIENT_ADDRESS$ |