Class TcpClientAdapter
Concrete Implementor - http://en.wikipedia.org/wiki/Bridge_Pattern
Inheritance
System.Object
TcpClientAdapter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NModbus.IO
Assembly: NModbus.dll
Syntax
public class TcpClientAdapter : IStreamResource, IDisposable
Constructors
| Improve this Doc View SourceTcpClientAdapter(TcpClient)
Declaration
public TcpClientAdapter(TcpClient tcpClient)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Sockets.TcpClient | tcpClient |
Properties
| Improve this Doc View SourceInfiniteTimeout
Declaration
public int InfiniteTimeout { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ReadTimeout
Declaration
public int ReadTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
WriteTimeout
Declaration
public int WriteTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceDiscardInBuffer()
Declaration
public void DiscardInBuffer()
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Read(Byte[], Int32, Int32)
Declaration
public int Read(byte[] buffer, int offset, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset | |
System.Int32 | size |
Returns
Type | Description |
---|---|
System.Int32 |
Write(Byte[], Int32, Int32)
Declaration
public void Write(byte[] buffer, int offset, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset | |
System.Int32 | size |
Implements
System.IDisposable