2
Answers

Cast Socket into my own Socket

none

none

14y
2.6k
1
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)