summaryrefslogtreecommitdiff
path: root/netcon/NetconService.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'netcon/NetconService.hpp')
-rw-r--r--netcon/NetconService.hpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/netcon/NetconService.hpp b/netcon/NetconService.hpp
index aae76b70..0d497ea9 100644
--- a/netcon/NetconService.hpp
+++ b/netcon/NetconService.hpp
@@ -129,16 +129,11 @@ namespace ZeroTier {
return NULL;
}
- void closeConnection(NetconConnection *c)
+ void removeConnection(PhySocket *sock)
{
- // close all connections
- // -- pcb
- // -- PhySocket
- }
-
- void closeConnection(PhySocket *sock)
- {
-
+ for(size_t i=0; i<connections.size(); i++) {
+ if(connections[i]->sock == sock) { connections.erase(connections.begin() + i); }
+ }
}
void closeClient()