This commit is contained in:
2025-04-17 17:28:47 -05:00
parent a1e9401aaa
commit a79f40c66c
8 changed files with 135 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ void ServerModule::startServer(int p) {
pollGroup = interface->CreatePollGroup();
if ( pollGroup == k_HSteamNetPollGroup_Invalid )
std::cerr << "Failed to listen on port " << port << std::endl;
//Printf( "Server listening on port %d\n", port );
std::cerr << "Server listening on port " << port << std::endl;
running = true;
}

View File

@@ -30,6 +30,8 @@ class ServerModule : public Archimedes::Module {
DataSent = 1 << 2
};
bool isRunning() const { return running; }
void shouldHandleEvents(unsigned int events) { eventsToHandle = events; }
void sendReliable(HSteamNetConnection client, const void* data, uint32 byteCount) {