lib60870.NET  2.2.0
IEC 60870-5-101/104 Protocol Source Code Library for C#/.NET
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. 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]
 

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

Member Function Documentation

◆ Start()

void lib60870.linklayer.TcpClientVirtualSerialPort.Start ( )

Start the virtual serial port (connect to server)

◆ Stop()

void lib60870.linklayer.TcpClientVirtualSerialPort.Stop ( )

Stop the virtual serial port

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: