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.
Afficher le fichier Open project: killnine/s7netplus

Méthodes publiques

Méthode 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 méthode

public Close ( ) : void
Résultat void

Connect() public méthode

public Connect ( IPEndPoint server ) : void
server System.Net.IPEndPoint
Résultat void

Receive() public méthode

public Receive ( byte buffer, int size, SocketFlags socketFlag ) : int
buffer byte
size int
socketFlag SocketFlags
Résultat int

Send() public méthode

public Send ( byte buffer, int size, SocketFlags socketFlag ) : int
buffer byte
size int
socketFlag SocketFlags
Résultat int

SetSocketOption() public méthode

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue int
Résultat void

Shutdown() public méthode

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
Résultat void

Socket() public méthode

public Socket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : System
addressFamily AddressFamily
socketType SocketType
protocolType ProtocolType
Résultat System