April 4th, 2011, 02:21 PM
Im currently developing a server & client with you can send messages with an client to a chatroom.
- Caching Clients.
- Log in/out of client.
- Universal Packets (With messageid) and some more feactures.
Snippet 1: (How to send a message)
ServerMessage Message = new ServerMessage();
Message.Init(1); // 1 = messageid
Message.AppendInt(50); // 50 = is an number to send
Message.AppendString("Helloo"); // string to send
Message.AppendStringWithBreak("Hey"); // Displays Hello (Char number 2)
Chars are to generate a list or multi strings etc.
How is it build?
- ClientManager (Manager of clients etc, disconnecting, adding clients / removeing)
- Listener (Manager of Packets, recieve packets)
- WireEncoding (Generates the packets to a string,int,list,dictonary whatever)
I will release it here when its finished
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.