Show / Hide Table of Contents

Class TcpClientAdapter

Concrete Implementor - http://en.wikipedia.org/wiki/Bridge_Pattern

Inheritance
System.Object
TcpClientAdapter
Implements
IStreamResource
System.IDisposable
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 Source

TcpClientAdapter(TcpClient)

Declaration
public TcpClientAdapter(TcpClient tcpClient)
Parameters
Type Name Description
System.Net.Sockets.TcpClient tcpClient

Properties

| Improve this Doc View Source

InfiniteTimeout

Declaration
public int InfiniteTimeout { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ReadTimeout

Declaration
public int ReadTimeout { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

WriteTimeout

Declaration
public int WriteTimeout { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

DiscardInBuffer()

Declaration
public void DiscardInBuffer()
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
| Improve this Doc View Source

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
| Improve this Doc View Source

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

IStreamResource
System.IDisposable
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX