private void OnSocketAccept(object sender, Socket acceptedSocket) { Logger.RegistrationLog("Client connected " + acceptedSocket.RemoteEndPoint.ToString()); TCPPacketConnection tcp = new TCPPacketConnection(acceptedSocket); NetworkConnection newNetworkConnection = new NetworkConnection(tcp); Logger.ServerLog("Adding Client to Accepted Connections"); AcceptedConnections.Add(newNetworkConnection); }