NBS.TCP_Server (FB)

( CAA_NetBaseServices.library)

Sets up a server over the IP and port specified in ipAddr and uiPort. A server can handle several connections. The output handle hServer of these function block can be used to establish a connection via NBS.TCP_Connection.

Input:

xEnable

BOOL

see: “CAA 指南”

ipAddr

NBS.IP_ADDR

Ip address for sending and receiving data

uiPort

UINT

Port for sending and receiving data

Output:

xDone

BOOL

see: “CAA 指南”

xBusy

BOOL

see: “CAA 指南”

xError

BOOL

see: “CAA 指南”

eError

NBS.ERROR

Error id

hServer

CAA.HANDLE

Handle of the server