C# 클래스 Descent.Messaging.Connection.ClientConnection

A TCP client connected to the host server. When sending a message, it will send only to the server at the other end of the connection.
상속: Connection
파일 보기 프로젝트 열기: nezbo/Descent

Private Properties

프로퍼티 타입 설명
MessageReceived void

공개 메소드들

메소드 설명
ClientConnection ( string ip, int port ) : System

Initializes a new instance of the ClientConnection class. Responsible for client connections to the host/server.

Close ( ) : void

Close the socket connection.

SendString ( string message ) : void

Send a string to the host.

Start ( ) : void

Beging the client connection. Will connect to specified host and begin receiving data.

비공개 메소드들

메소드 설명
MessageReceived ( ClientInfo clientInfo, string message ) : void

Called when a message was received from the connection.

메소드 상세

ClientConnection() 공개 메소드

Initializes a new instance of the ClientConnection class. Responsible for client connections to the host/server.
public ClientConnection ( string ip, int port ) : System
ip string Ips of server.
port int Port of server.
리턴 System

Close() 공개 메소드

Close the socket connection.
public Close ( ) : void
리턴 void

SendString() 공개 메소드

Send a string to the host.
public SendString ( string message ) : void
message string Message to send.
리턴 void

Start() 공개 메소드

Beging the client connection. Will connect to specified host and begin receiving data.
public Start ( ) : void
리턴 void