mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Removal of openssl stuff
This commit is contained in:
-26
@@ -144,32 +144,6 @@ int main() {
|
||||
|
||||
worldserver->Connect();
|
||||
|
||||
EQ::Net::TCPServer server;
|
||||
std::vector<std::shared_ptr<EQ::Net::TCPConnection>> connections;
|
||||
server.Listen(5999, true, [&](std::shared_ptr<EQ::Net::TCPConnection> connection) {
|
||||
Log.OutF(Logs::General, Logs::Debug, "New connection found.");
|
||||
connections.push_back(connection);
|
||||
|
||||
connection->OnRead([](EQ::Net::TCPConnection *connection, const unsigned char *data, size_t length) {
|
||||
EQ::Net::ReadOnlyPacket p((void*)data, length);
|
||||
Log.OutF(Logs::General, Logs::Debug, "{0}", p.ToString());
|
||||
});
|
||||
|
||||
connection->OnDisconnect([&](EQ::Net::TCPConnection *connection) {
|
||||
auto iter = connections.begin();
|
||||
while (iter != connections.end()) {
|
||||
if ((*iter).get() == connection) {
|
||||
Log.OutF(Logs::General, Logs::Debug, "Removing connection");
|
||||
connections.erase(iter);
|
||||
return;
|
||||
}
|
||||
iter++;
|
||||
}
|
||||
});
|
||||
|
||||
connection->Start();
|
||||
});
|
||||
|
||||
while(RunLoops) {
|
||||
|
||||
Timer::SetCurrentTime();
|
||||
|
||||
Reference in New Issue
Block a user