fix errrrorr

main
Anton Franzluebbers 2022-01-31 17:05:56 -05:00
parent bdf531829b
commit 37854f7bf4
1 changed files with 3 additions and 3 deletions

View File

@ -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