You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
Is accepting incoming connections supported in WinRT? I've added both Internet (Client & Server) and Private Networks to the capabilities of my app, and have modified the WinRT sample code accept connections and it never connects.
RakNet::SocketDescriptor socketDescriptor;
socketDescriptor.port = DEFAULT_SERVER_PORT;
socketDescriptor.socketFamily = AF_INET; // IPV4
// Startup the peer interface with the given socket settings. Will fail if we already have a peer interface for this host
RakNet::StartupResult startupResult = rakPeer->Startup(MAX_CONNECTIONS, &socketDescriptor, 1);
assert(startupResult == RAKNET_STARTED);
// Calling this function starts the peer listening for incoming connections
rakPeer->SetMaximumIncomingConnections(MAX_CONNECTIONS);
Packet *packet;
do
{
packet = rakPeer->Receive();
Sleep(1);
}
while (!packet || packet->data[0] != ID_NEW_INCOMING_CONNECTION);
RakAssert(packet->data[0] == ID_NEW_INCOMING_CONNECTION);
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is accepting incoming connections supported in WinRT? I've added both Internet (Client & Server) and Private Networks to the capabilities of my app, and have modified the WinRT sample code accept connections and it never connects.
RakPeerInterface *rakPeer = RakPeerInterface::GetInstance();
The text was updated successfully, but these errors were encountered: