Removal of openssl stuff

This commit is contained in:
KimLS
2016-10-20 21:32:48 -07:00
parent 960da66b87
commit e29ca88a76
351 changed files with 76 additions and 87264 deletions
-26
View File
@@ -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();