Open the server socket.
Opens the server socket and starts listening for incoming connections.
The BOOL return value is TRUE if the function was executed successfully. Evaluate the property Result, in case the return value is FALSE.
State Transition of the Server
Stage |
Description |
---|---|
1 |
Initial state: Idle |
2 |
Function call |
3 |
State: Opening |
4 |
Final state: Listening, otherwise an error is detected |
Input |
Data type |
Valid range |
Description |
---|---|---|---|
i_sInterfaceIP |
STRING(15) |
- |
IP address of the interface to bind to. If null or 0.0.0.0, the server is available on all interfaces. |
i_uiServerPort |
UINT |
1 ... 65535 |
TCP port to listen on. |
oFB_TCPServer/FB_TCPServer2