Hello, i need help with C# and .net.sockets
when the client connects i need to get some data from the packet I.E the OPCODE.
i dont know how to do this, but i can show you a code example of what im trying to achieve..
sock.Receive(data);
uint Opcode = 0;// trying to get it to = or data +6
//and the output in the uint should look like this 0x00000000
switch (Opcode)
{
case 0x00030000:
sendPacket(invalid_username);
break;
}
a regular typecast wont work, any suggestions?

