N
Nuno Magalhaes
This code gives me the runtime error "Specified cast is not valid":
MyTcpClient ClientTcp=(MyTcpClient)ListenerTcp.AcceptTcpClient();
MyTcpClient is a class that inherits from TcpClient. Why can't I do
this? Is it possible to get the remote endpoint without have to go to
the underlying socket? I don't want to mess with sockets and I just
want the network stream to read/write data.
MyTcpClient ClientTcp=(MyTcpClient)ListenerTcp.AcceptTcpClient();
MyTcpClient is a class that inherits from TcpClient. Why can't I do
this? Is it possible to get the remote endpoint without have to go to
the underlying socket? I don't want to mess with sockets and I just
want the network stream to read/write data.