TCP_Server (FB)
FUNCTION_BLOCK PUBLIC FINAL TCP_Server EXTENDS LConC IMPLEMENTS IServer, IServer_Internal, IOptionConsumer
Sets up a server over the ip and port specified in itfIPAddress and uiPort. A server can handle several
connections. The output itfServer of these function block can be used to establish a
connection via TCP_Connection.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xEnableBOOLTRUE: Activates the defined operationFALSE: Aborts/resets the defined operationLConC
Output
xBusyBOOLTRUE: Operation is runningLConC
xErrorBOOLTRUE: Error condition reachedLConC
eErrorIDLConC
Input Const
udiMaxConnectionsUDINT5
Maximum number of connections queued in TCP Stack
itfAsyncPropertyitfTLSContextitfTSNContextInput
itfIPAddressuiPortUINTOutput
xActiveBOOLitfServer
Methods:
SetInitialValue
SetOptionProvider
Structure: