C# 클래스 Mycroft.App.CommandConnection

파일 보기 프로젝트 열기: rit-sse-mycroft/core 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Closes the underlying connection

CommandConnection ( TcpClient client, Stream input ) : System

Wrap a command connection around a generic input stream

GetCommand ( ) : string
SendMessageAsync ( string message ) : System.Threading.Tasks.Task

Writes a message back to the host

비공개 메소드들

메소드 설명
GetMsgLen ( ) : int

메소드 상세

Close() 공개 메소드

Closes the underlying connection
public Close ( ) : void
리턴 void

CommandConnection() 공개 메소드

Wrap a command connection around a generic input stream
public CommandConnection ( TcpClient client, Stream input ) : System
client System.Net.Sockets.TcpClient
input Stream The source of all commands
리턴 System

GetCommand() 공개 메소드

public GetCommand ( ) : string
리턴 string

SendMessageAsync() 공개 메소드

Writes a message back to the host
public SendMessageAsync ( string message ) : System.Threading.Tasks.Task
message string The message to write, including the message type tag and JSON body
리턴 System.Threading.Tasks.Task