fix errrrorr
parent
bdf531829b
commit
37854f7bf4
|
|
@ -731,12 +731,12 @@ namespace VelNet
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
int numReceived = udpSocket.Receive(buffer);
|
int numReceived = udpSocket.Receive(buffer);
|
||||||
switch ((MessageReceiveType)buffer[0])
|
switch ((MessageReceivedType)buffer[0])
|
||||||
{
|
{
|
||||||
case MessageReceiveType.MESSAGE_LOGIN:
|
case MessageReceivedType.LOGGED_IN:
|
||||||
Debug.Log("UDP connected");
|
Debug.Log("UDP connected");
|
||||||
break;
|
break;
|
||||||
case MessageReceiveType.MESSAGE_DATA:
|
case MessageReceivedType.DATA_MESSAGE:
|
||||||
{
|
{
|
||||||
DataMessage m = new DataMessage();
|
DataMessage m = new DataMessage();
|
||||||
//we should get the sender address
|
//we should get the sender address
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue