C# 클래스 Networking.Client

A client manages the connection to the server
파일 보기 프로젝트 열기: Silveryard/SmartHome 1 사용 예제들

공개 메소드들

메소드 설명
Client ( string address, int port ) : System

Creates a new instance

Connect ( ) : bool

Connects the client to the server

Disconnect ( ) : void

Disconnects the client from the server

Send ( byte data ) : void

Sends a bunch of data to the server

비공개 메소드들

메소드 설명
Work ( ) : void

메소드 상세

Client() 공개 메소드

Creates a new instance
public Client ( string address, int port ) : System
address string The address to connect to
port int The port to use for the connection
리턴 System

Connect() 공개 메소드

Connects the client to the server
public Connect ( ) : bool
리턴 bool

Disconnect() 공개 메소드

Disconnects the client from the server
public Disconnect ( ) : void
리턴 void

Send() 공개 메소드

Sends a bunch of data to the server
public Send ( byte data ) : void
data byte The data to send
리턴 void