lib60870.NET
2.2.0
IEC 60870-5-101/104 Protocol Source Code Library for C#/.NET
|
TCP client virtual serial port. Can be used to tunnel CS 101 protocol over TCP/IP. More...
Public Member Functions | |
TcpClientVirtualSerialPort (String hostname, int tcpPort=2404) | |
Initializes a new instance of the lib60870.linklayer.TcpClientVirtualSerialPort class. More... | |
void | Start () |
Start the virtual serial port (connect to server) More... | |
void | Stop () |
Stop the virtual serial port More... | |
override int | Read (byte[] buffer, int offset, int count) |
override void | Write (byte[] buffer, int offset, int count) |
override long | Seek (long offset, SeekOrigin origin) |
override void | Flush () |
override void | SetLength (long value) |
Properties | |
bool | Connected [get] |
Gets a value indicating whether this lib60870.linklayer.TcpClientVirtualSerialPort is connected to a server More... | |
bool | DebugOutput [get, set] |
override bool | CanRead [get] |
override bool | CanSeek [get] |
override bool | CanTimeout [get] |
override bool | CanWrite [get] |
override long | Length [get] |
override long | Position [get, set] |
override int | ReadTimeout [get, set] |
override int | WriteTimeout [get, set] |
TCP client virtual serial port. Can be used to tunnel CS 101 protocol over TCP/IP.
lib60870.linklayer.TcpClientVirtualSerialPort.TcpClientVirtualSerialPort | ( | String | hostname, |
int | tcpPort = 2404 |
||
) |
Initializes a new instance of the lib60870.linklayer.TcpClientVirtualSerialPort class.
hostname | IP address of the server |
tcpPort | TCP port of the server |
void lib60870.linklayer.TcpClientVirtualSerialPort.Start | ( | ) |
Start the virtual serial port (connect to server)
void lib60870.linklayer.TcpClientVirtualSerialPort.Stop | ( | ) |
Stop the virtual serial port
|
get |
Gets a value indicating whether this lib60870.linklayer.TcpClientVirtualSerialPort is connected to a server
true
if connected; otherwise, false
.