We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Socket::GetSocket(s)ByIP()
sockaddr_in
1 parent b14e553 commit a5bd296Copy full SHA for a5bd296
1 file changed
InternetGamesServer/Socket.cpp
@@ -228,9 +228,6 @@ Socket::GetAddressString(IN_ADDR address)
228
std::vector<Socket*>
229
Socket::GetSocketsByIP(const std::string& ip)
230
{
231
- sockaddr_in socketInfo;
232
- int socketInfoSize = sizeof(socketInfo);
233
-
234
std::vector<Socket*> sockets;
235
for (Socket* socket : s_socketList)
236
@@ -243,9 +240,6 @@ Socket::GetSocketsByIP(const std::string& ip)
243
240
Socket*
244
241
Socket::GetSocketByIP(const std::string& ip, USHORT port)
245
242
246
247
248
249
250
251
if (socket->m_address.ip == ip && socket->m_address.port == port)
0 commit comments