C# Class BytesRoad.Net.Sockets.SocketBase

Summary description for SocketBase.
Inheritance: BytesRoad.Net.Sockets.Advanced.AsyncBase, IDisposable
Datei anzeigen Open project: NikolayIT/RatioMaster.NET Class Usage Examples

Protected Properties

Property Type Description
_proxyPassword byte[]
_proxyPort int
_proxyServer string
_proxyUser byte[]
_socket Socket

Private Properties

Property Type Description
Accept SocketBase
BeginAccept IAsyncResult
BeginBind IAsyncResult
BeginConnect IAsyncResult
BeginConnect IAsyncResult
BeginGetHostByName IAsyncResult
BeginReceive IAsyncResult
BeginSend IAsyncResult
Bind void
Close void
Connect void
Connect void
ConstructEndPoint System.Net.IPEndPoint
EndAccept SocketBase
EndBind void
EndConnect void
EndGetHostByName System.Net.IPHostEntry
EndReceive int
EndSend int
GetHostByName System.Net.IPHostEntry
Listen void
Receive int
Receive int
Receive int
Send int
Send int
Send int
SetSocketOption void
SetSocketOption void
SetSocketOption void
Shutdown void

Public Methods

Method Description
Dispose ( ) : void

Protected Methods

Method Description
CheckDisposed ( ) : void
Dispose ( bool disposing ) : void
SocketBase ( ) : System
SocketBase ( Socket systemSocket ) : System
SocketBase ( string proxyServer, int proxyPort, byte proxyUser, byte proxyPassword ) : System

Private Methods

Method Description
Accept ( ) : SocketBase
BeginAccept ( AsyncCallback callback, object state ) : IAsyncResult
BeginBind ( SocketBase socket, AsyncCallback callback, object state ) : IAsyncResult
BeginConnect ( EndPoint remoteEP, AsyncCallback callback, object state ) : IAsyncResult
BeginConnect ( string hostName, int port, AsyncCallback callback, object state ) : IAsyncResult
BeginGetHostByName ( string hostName, AsyncCallback cb, object state ) : IAsyncResult
BeginReceive ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
BeginSend ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
Bind ( SocketBase socket ) : void
Close ( ) : void
Connect ( EndPoint remoteEP ) : void
Connect ( string hostName, int port ) : void
ConstructEndPoint ( IPHostEntry host, int port ) : IPEndPoint
EndAccept ( IAsyncResult asyncResult ) : SocketBase
EndBind ( IAsyncResult ar ) : void
EndConnect ( IAsyncResult asyncResult ) : void
EndGetHostByName ( IAsyncResult ar ) : IPHostEntry
EndReceive ( IAsyncResult asyncResult ) : int
EndSend ( IAsyncResult asyncResult ) : int
GetHostByName ( string hostName ) : IPHostEntry
Listen ( int backlog ) : void
Receive ( byte buffer ) : int
Receive ( byte buffer, int size ) : int
Receive ( byte buffer, int offset, int size ) : int
Send ( byte buffer ) : int
Send ( byte buffer, int size ) : int
Send ( byte buffer, int offset, int size ) : int
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, object optionValue ) : void
Shutdown ( SocketShutdown how ) : void

Method Details

CheckDisposed() protected method

protected CheckDisposed ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

SocketBase() protected method

protected SocketBase ( ) : System
return System

SocketBase() protected method

protected SocketBase ( Socket systemSocket ) : System
systemSocket Socket
return System

SocketBase() protected method

protected SocketBase ( string proxyServer, int proxyPort, byte proxyUser, byte proxyPassword ) : System
proxyServer string
proxyPort int
proxyUser byte
proxyPassword byte
return System

Property Details

_proxyPassword protected_oe property

protected byte[] _proxyPassword
return byte[]

_proxyPort protected_oe property

protected int _proxyPort
return int

_proxyServer protected_oe property

protected string _proxyServer
return string

_proxyUser protected_oe property

protected byte[] _proxyUser
return byte[]

_socket protected_oe property

protected Socket _socket
return Socket