C# 클래스 System.Net.Sockets.TcpClient

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
BeginConnectCore IAsyncResult
BeginConnectCore IAsyncResult
ConnectAsyncCore System.Threading.Tasks.Task
ConnectAsyncCore System.Threading.Tasks.Task
CreateSocket Socket
DisposeCore void
EndConnectCore void
InitializeClientSocket void
TcpClient System.Diagnostics

공개 메소드들

메소드 설명
BeginConnect ( IPAddress address, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
BeginConnect ( string host, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
Close ( ) : void
Connect ( IPAddress address, int port ) : void
Connect ( IPEndPoint remoteEP ) : void
Connect ( string hostname, int port ) : void
ConnectAsync ( IPAddress address, int port ) : System.Threading.Tasks.Task
ConnectAsync ( string host, int port ) : System.Threading.Tasks.Task
Dispose ( ) : void
EndConnect ( IAsyncResult asyncResult ) : void
GetStream ( ) : NetworkStream
TcpClient ( IPEndPoint localEP )
TcpClient ( string hostname, int port )
TcpClient ( ) : System.Diagnostics
TcpClient ( AddressFamily family ) : System.Diagnostics

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
BeginConnectCore ( IPAddress address, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
BeginConnectCore ( string host, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
ConnectAsyncCore ( IPAddress address, int port ) : System.Threading.Tasks.Task
ConnectAsyncCore ( string host, int port ) : System.Threading.Tasks.Task
CreateSocket ( ) : Socket
DisposeCore ( ) : void
EndConnectCore ( Socket socket, IAsyncResult asyncResult ) : void
InitializeClientSocket ( ) : void
TcpClient ( Socket acceptedSocket ) : System.Diagnostics

메소드 상세

BeginConnect() 공개 메소드

public BeginConnect ( IPAddress address, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
address IPAddress
port int
requestCallback AsyncCallback
state object
리턴 IAsyncResult

BeginConnect() 공개 메소드

public BeginConnect ( string host, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
host string
port int
requestCallback AsyncCallback
state object
리턴 IAsyncResult

Close() 공개 메소드

public Close ( ) : void
리턴 void

Connect() 공개 메소드

public Connect ( IPAddress address, int port ) : void
address IPAddress
port int
리턴 void

Connect() 공개 메소드

public Connect ( IPEndPoint remoteEP ) : void
remoteEP IPEndPoint
리턴 void

Connect() 공개 메소드

public Connect ( string hostname, int port ) : void
hostname string
port int
리턴 void

ConnectAsync() 공개 메소드

public ConnectAsync ( IPAddress address, int port ) : System.Threading.Tasks.Task
address IPAddress
port int
리턴 System.Threading.Tasks.Task

ConnectAsync() 공개 메소드

public ConnectAsync ( string host, int port ) : System.Threading.Tasks.Task
host string
port int
리턴 System.Threading.Tasks.Task

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EndConnect() 공개 메소드

public EndConnect ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

GetStream() 공개 메소드

public GetStream ( ) : NetworkStream
리턴 NetworkStream

TcpClient() 공개 메소드

public TcpClient ( IPEndPoint localEP )
localEP IPEndPoint

TcpClient() 공개 메소드

public TcpClient ( string hostname, int port )
hostname string
port int

TcpClient() 공개 메소드

public TcpClient ( ) : System.Diagnostics
리턴 System.Diagnostics

TcpClient() 공개 메소드

public TcpClient ( AddressFamily family ) : System.Diagnostics
family AddressFamily
리턴 System.Diagnostics