none

none

  • NA
  • 91
  • 0

Cast Socket into my own Socket

Feb 4 2010 10:15 AM
I create a class

public class mySocket : Socket
    {
        public mySocket() : base(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
        {

        }
    }


I have some asyncronous connexion... and i got a error when i convert Socket to mySocket:

mySocket ms = (mySocket)cS;



Answers (2)