C# Class S7.Net.Socket

This class encapsulate System.Net.Sockets.Socket class of .Net core, so we can use the same methods of the standard Socket class inside the S7.Net sources.
ファイルを表示 Open project: killnine/s7netplus

Public Methods

Method Description
Close ( ) : void
Connect ( IPEndPoint server ) : void
Receive ( byte buffer, int size, SocketFlags socketFlag ) : int
Send ( byte buffer, int size, SocketFlags socketFlag ) : int
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
Shutdown ( SocketShutdown how ) : void
Socket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : System

Method Details

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( IPEndPoint server ) : void
server System.Net.IPEndPoint
return void

Receive() public method

public Receive ( byte buffer, int size, SocketFlags socketFlag ) : int
buffer byte
size int
socketFlag SocketFlags
return int

Send() public method

public Send ( byte buffer, int size, SocketFlags socketFlag ) : int
buffer byte
size int
socketFlag SocketFlags
return int

SetSocketOption() public method

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue int
return void

Shutdown() public method

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
return void

Socket() public method

public Socket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : System
addressFamily AddressFamily
socketType SocketType
protocolType ProtocolType
return System