Hello Everybody:
I am creating a client server application Asynchronously. I want to store the BeginAccept method in a Hashtable. But I am getting errors. Can anyone guide me what is wrong and how to store it in a hashtable.
Thanks,
Rahil
Socket sckt= m_socListener.BeginAccept(new AsyncCallback ( OnClientConnect ),null);
sockettable.Add(connectId, sckt);
The error I am getting is
Cannot implicitly convert type 'System.IAsyncResult' to 'System.Net.Sockets.Socket'
Pls guide what to do..
Rahil


Reply With Quote