PipesClient.Send

Sends a message to the server.


Remarks

A message sent before the client has connected is dropped. Use WaitForConnection first.


Syntax

SyntaxDescription
Send(PipeMessage message)Sends a message to the server.

Parameters

NameTypeDescription
messagePipeMessageThe message wrapped in a PipeMessage structure.

Example

1
2
3
4
5
6
7
8
9
using Nova.IPC.Pipes;

PipesClient client = new PipesClient("NovaDemoServer");
client.Start();
client.WaitForConnection(5000);

PipeMessage message = new PipeMessage();
message.EncodeString("Hello!");
client.Send(message);
This post is licensed under CC BY 4.0 by the author.

Trending Tags