printf("ID_ALREADY_CONNECTED with guid %lu\n",packet->guid.g);
break;
caseID_INCOMPATIBLE_PROTOCOL_VERSION:
printf("ID_INCOMPATIBLE_PROTOCOL_VERSION\n");
break;
caseID_REMOTE_DISCONNECTION_NOTIFICATION:// Server telling the clients of another client disconnecting gracefully. You can manually broadcast this in a peer to peer enviroment if you want.
printf("ID_REMOTE_DISCONNECTION_NOTIFICATION\n");
break;
caseID_REMOTE_CONNECTION_LOST:// Server telling the clients of another client disconnecting forcefully. You can manually broadcast this in a peer to peer enviroment if you want.
printf("ID_REMOTE_CONNECTION_LOST\n");
break;
caseID_REMOTE_NEW_INCOMING_CONNECTION:// Server telling the clients of another client connecting. You can manually broadcast this in a peer to peer enviroment if you want.
printf("ID_REMOTE_NEW_INCOMING_CONNECTION\n");
break;
caseID_CONNECTION_BANNED:// Banned from this server
printf("We are banned from this server.\n");
break;
caseID_CONNECTION_ATTEMPT_FAILED:
printf("Connection attempt failed\n");
break;
caseID_NO_FREE_INCOMING_CONNECTIONS:
// Sorry, the server is full. I don't do anything here but
// A real app should tell the user
printf("ID_NO_FREE_INCOMING_CONNECTIONS\n");
break;
caseID_INVALID_PASSWORD:
printf("ID_INVALID_PASSWORD\n");
break;
caseID_CONNECTION_LOST:
// Couldn't deliver a reliable packet - i.e. the other system was abnormally
// terminated
printf("ID_CONNECTION_LOST\n");
return0;
break;
caseID_CONNECTION_REQUEST_ACCEPTED:
// This tells the client they have connected
printf("ID_CONNECTION_REQUEST_ACCEPTED to %s with GUID %s\n",packet->systemAddress.ToString(true),
packet->guid.ToString());
printf("My external address is %s\n",peer->GetExternalID(packet->systemAddress).ToString(true));