lib60870.NET 2.3.0
IEC 60870-5-101/104 Protocol Source Code Library for C#/.NET
Loading...
Searching...
No Matches
lib60870.linklayer.TcpClientVirtualSerialPort Class Reference

TCP client virtual serial port. Can be used to tunnel CS 101 protocol over TCP/IP. More...

Inheritance diagram for lib60870.linklayer.TcpClientVirtualSerialPort:
Collaboration diagram for lib60870.linklayer.TcpClientVirtualSerialPort:

Public Member Functions

 TcpClientVirtualSerialPort (String hostname, int tcpPort=2404)
 Initializes a new instance of the lib60870.linklayer.TcpClientVirtualSerialPort class.
 
void Start ()
 Start the virtual serial port (connect to server)
 
void Stop ()
 Stop the virtual serial port.
 
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.
 
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]
 

Detailed Description

TCP client virtual serial port. Can be used to tunnel CS 101 protocol over TCP/IP.

Constructor & Destructor Documentation

◆ TcpClientVirtualSerialPort()

lib60870.linklayer.TcpClientVirtualSerialPort.TcpClientVirtualSerialPort ( String hostname,
int tcpPort = 2404 )

Initializes a new instance of the lib60870.linklayer.TcpClientVirtualSerialPort class.

Parameters
hostnameIP address of the server
tcpPortTCP port of the server

Property Documentation

◆ Connected

bool lib60870.linklayer.TcpClientVirtualSerialPort.Connected
get

Gets a value indicating whether this lib60870.linklayer.TcpClientVirtualSerialPort is connected to a server.

true if connected; otherwise, false.


The documentation for this class was generated from the following file: