Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Soul

Pages: 1 [2]
16
Network / [SOLVED]Network question about recv packets
« on: February 28, 2013, 02:44:55 pm »
Hey, i have a question about recv packets, can i do it in this style?
i want recv part of a packet to check a packet type and packet action then recv rest of the packet?
ex.
enum packet_type
{
type1 = 0,
type2 = 1,
type3 = 2...
}

then

switch( packet >> packet_type )
{
case : type1
{
packet >> x >> x;
...
}
case : type2
{
packet >> learnskill >> id;
...
}
...
 
?

17
Network / [SOLVED]klient-serwer game network
« on: September 22, 2012, 11:38:15 am »
Hello, I have a problem with writing a client-server communication, without a good beat to admit that I am a layman in network programming (I wrote a simple ircbot by using winsock and chat), but communication in games is a completely different story, so please you whenever possible to show and explanation a simple example how the package should look like, how it should be sent / received and interpreted
in Advance thanks for your help

Pages: 1 [2]