C# 클래스 Mycroft.Server.TcpServer

Starts Mycroft's network communications and owns resources in the server
상속: ICommandable
파일 보기 프로젝트 열기: rit-sse-mycroft/core 1 사용 예제들

공개 메소드들

메소드 설명
Issue ( Command command ) : void

Allow the server to be visited by commands

Start ( ) : void

Starts the server listening for network connections

Stop ( ) : void
TcpServer ( IPAddress ip, int port ) : System

보호된 메소드들

메소드 설명
CreateConnection ( TcpClient client ) : CommandConnection

Creates a connection object from a TcpClient

비공개 메소드들

메소드 설명
Listen ( object pars ) : void
OnClientConnected ( object connection ) : void

Handle clients connecting to the server by creating an AppInstance for the connection

메소드 상세

CreateConnection() 보호된 메소드

Creates a connection object from a TcpClient
protected CreateConnection ( TcpClient client ) : CommandConnection
client System.Net.Sockets.TcpClient
리턴 Mycroft.App.CommandConnection

Issue() 공개 메소드

Allow the server to be visited by commands
public Issue ( Command command ) : void
command Mycroft.Cmd.Command The command that will operate on the server
리턴 void

Start() 공개 메소드

Starts the server listening for network connections
public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

TcpServer() 공개 메소드

public TcpServer ( IPAddress ip, int port ) : System
ip System.Net.IPAddress
port int
리턴 System