C# 클래스 SteamDroidServer.Networking.Connection

Connection connects to a remote host and handles the sending and receiving of data
파일 보기 프로젝트 열기: FlyingPie/SteamDroid

공개 메소드들

메소드 설명
Connect ( String ip, int port ) : bool

Connects to the specified ip and port

Connection ( ) : System
Connection ( Socket socket ) : System
Disconnect ( ) : void

Disconnects from the host

Send ( ) : bool

Sends the specified message to the host, parameterized

Send ( String data ) : bool

Sends the specified message to the host

SendSynchronous ( String data ) : String

Sends the specified message to the host and waits for a response

StartListener ( ) : void

Starts the connection thread

비공개 메소드들

메소드 설명
Listen ( ) : void

Listens for incoming messages and fires and event on data

메소드 상세

Connect() 공개 메소드

Connects to the specified ip and port
public Connect ( String ip, int port ) : bool
ip String The ip to connect to
port int The port to use
리턴 bool

Connection() 공개 메소드

public Connection ( ) : System
리턴 System

Connection() 공개 메소드

public Connection ( Socket socket ) : System
socket Socket
리턴 System

Disconnect() 공개 메소드

Disconnects from the host
public Disconnect ( ) : void
리턴 void

Send() 공개 메소드

Sends the specified message to the host, parameterized
public Send ( ) : bool
리턴 bool

Send() 공개 메소드

Sends the specified message to the host
public Send ( String data ) : bool
data String The message to send
리턴 bool

SendSynchronous() 공개 메소드

Sends the specified message to the host and waits for a response
public SendSynchronous ( String data ) : String
data String The data to send
리턴 String

StartListener() 공개 메소드

Starts the connection thread
public StartListener ( ) : void
리턴 void