E_SocketAcceptMode

E_SocketAcceptMode specifies which connections are accepted by the server.

Syntax

TYPE E_SocketAcceptMode:
(* Connection accept modes *)
(
    eACCEPT_ALL, (* Accept connection to all remote clients *)
    eACCEPT_SEL_HOST, (* Accept connection to selected host address *)
    eACCEPT_SEL_PORT, (* Accept connection to selected port address *)
    eACCEPT_SEL_HOST_PORT (* Accept connection to selected host and port address *)
);
END_TYPE

Values

Name

Description

eACCEPT_ALL

Accept connection to all remote clients.

eACCEPT_SEL_HOST

Accept connection to selected host address.

eACCEPT_SEL_PORT

Accept connection to selected port address.

eACCEPT_SEL_HOST_PORT

Accept connection to selected host and port address.

Requirements

Development environment

Target system type

PLC libraries to include (category group)

TwinCAT v3.1.0

PC, or CX (x86, X64, Arm®)

Tc2_TcpIp (communication)