private static void connectionRequest(IAsyncResult iAr) { Socket newSocket = ((Socket)iAr.AsyncState).EndAccept(iAr); if (newSocket.RemoteEndPoint.ToString().Split(':')[0] != _musHost) { newSocket.Close(); socketHandler.BeginAccept(new AsyncCallback(connectionRequest), socketHandler); return; } WebsiteConnection newConnection = new WebsiteConnection(newSocket); socketHandler.BeginAccept(new AsyncCallback(connectionRequest), socketHandler); }