MbusIpServerBasestartupServer Method (String) |
Puts the Modbus server into operation.
Namespace:
FieldTalk.Modbus.Slave
Assembly:
FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntaxpublic int startupServer(
string hostName
)
Public Function startupServer (
hostName As String
) As Integer
public:
int startupServer(
String^ hostName
)
Parameters
- hostName
- Type: SystemString
String with IP address for a specific host
interface or empty string if connections are accepted on any interface
Return Value
Type:
Int32 BusProtocolErrors.FTALK_SUCCESS on success or error code.
See
BusProtocolErrors for possible error codes.
Remarks
This function opens a TCP/IP socket, binds the configured TCP port
to the Modbus/TCP protocol and initialises the server engine.
The server accepts connections only on the interfaces which match the
supplied hostname or IP address parameter. This method allows
to run different servers on multiple interfaces
(so called multihomed servers).
See Also