C# Class Networking.Server

显示文件 Open project: Silveryard/SmartHome Class Usage Examples

Public Methods

Method Description
Close ( ServerInstance instance ) : void

Closes the connection to one client

Server ( ) : System

Creates a new instance

Start ( ) : void

Starts the server

Stop ( ) : void

Stops the server

Private Methods

Method Description
ServerInstance_InstanceClosed ( ServerInstance obj ) : void
ServerInstance_MessageReceived ( ServerInstance arg1, byte arg2 ) : void
Work ( ) : void

Method Details

Close() public method

Closes the connection to one client
public Close ( ServerInstance instance ) : void
instance ServerInstance The connection to close
return void

Server() public method

Creates a new instance
public Server ( ) : System
return System

Start() public method

Starts the server
public Start ( ) : void
return void

Stop() public method

Stops the server
public Stop ( ) : void
return void