C# Класс Mycroft.App.CommandConnection

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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