This project has moved. For the latest updates, please go here.

message to client

Coordinator
Jul 16, 2010 at 9:00 PM

[This message was copied here from an email]

hallo,
i'm Alex , tnx for project is fantastic. I've a question , how can i send a single  message text from client1 to client2 and add a username when connect to The server, ? i want search a user from username in The server , Now The client put ip and port, i want to add Also username , how can do it? tnx tnx

alex

Coordinator
Jul 16, 2010 at 9:07 PM

The Nito.Async socket classes do not require any particular protocol.

The lower-level classes (IAsyncTcpConnection) treat the socket data as streams, just like the Socket class.

The "simple" classes (ISimpleAsyncTcpConnection) do define a message framing system with keepalives, but they do not define any messages.

You can send any message you want over either of these. See the "chat" sample applications for a simple approach that just uses BinaryFormatter to send Serializable objects over the connection.

       -Steve