void ClientConnected(IAsyncResult result) { System.Net.Sockets.TcpListener listener = result.AsyncState as System.Net.Sockets.TcpListener; System.Net.Sockets.TcpClient socket = listener.EndAcceptTcpClient(result); Damany.RemoteImaging.Common.ObjectSender sender = new Damany.RemoteImaging.Common.ObjectSender(socket); foreach (var c in this.controllers) { } }