C# Class GlowCommon.CommandServer

Afficher le fichier Open project: QuinnDamerell/Glow Class Usage Examples

Méthodes publiques

Méthode Description
CommandServer ( ICommandServerListener listener, CommmandServerMode mode, string ipAddress = "" ) : System
SendMessage ( Command cmd ) : Task

Can be called by the client to send a message.

Private Methods

Méthode Description
InternalSendMessage ( Command cmd, DataWriter writer ) : System.Threading.Tasks.Task
ServiceSocket ( StreamSocket socket ) : void

Called by both the server and client to service the socket. This function will return when the socket dies.

SocketAccpet ( StreamSocketListener sender, StreamSocketListenerConnectionReceivedEventArgs args ) : void

Only used by the server side, accepts new clients.

WaitForCommand ( DataReader reader ) : Task

Method Details

CommandServer() public méthode

public CommandServer ( ICommandServerListener listener, CommmandServerMode mode, string ipAddress = "" ) : System
listener ICommandServerListener
mode CommmandServerMode
ipAddress string
Résultat System

SendMessage() public méthode

Can be called by the client to send a message.
public SendMessage ( Command cmd ) : Task
cmd GlowCommon.DataObjects.Command Message to be sent
Résultat Task