C# 클래스 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.
파일 보기 프로젝트 열기: killnine/s7netplus

공개 메소드들

메소드 설명
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

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

Connect() 공개 메소드

public Connect ( IPEndPoint server ) : void
server System.Net.IPEndPoint
리턴 void

Receive() 공개 메소드

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

Send() 공개 메소드

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

SetSocketOption() 공개 메소드

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

Shutdown() 공개 메소드

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
리턴 void

Socket() 공개 메소드

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