private void AcceptSocket(IAsyncResult result)
{
State = DispatcherState.AcceptingSocket;
Socket sock = m_listener.EndAcceptSocket(result);
//Queue the next accept
BeginAcceptingSockets();
//Fire the event handler for sockets
if (SocketConnected != null)
{
SocketConnected(sock);
}
else
{
//boot the user if nobody is listening
sock.Disconnect(false);
}
}