> Hello,
> I apologize for posting to the wrong group.
[quoted text clipped - 42 lines]
> }
> }
If I understood correctly you are talking about a server service. Why do you use TcpClient
inside StartListen()? The TcpListener::AcceptSocket() method establishes the connection
and returns you a Socket object.
> One of the things I have recently read is that I need to close the
> NetworkStream also, do you think this would cause the sockets to shutdown?
Yes, the Socket object used by TcpClient shuts down with the above and you should close
all the above in turn:
// In C++ syntax
bw->Close();
ns->Close();
_tcpClient.Close();
> So far I don't receive any types of error messages, the socket just seems to
> stop communicating and the windows service needs to be rebooted...
Also in any case, as far as I know so far, after establishing a connection with
TcpListener::AcceptSocket(), you should create a new TcpListener if you want to accept
connections from more than one client.
German - 18 Jul 2005 19:15 GMT
Can I use this comannds in VC6.00? what directive i need to include ?
German Medina
+519-662-8500
> > Hello,
> > I apologize for posting to the wrong group.
[quoted text clipped - 65 lines]
> TcpListener::AcceptSocket(), you should create a new TcpListener if you want to accept
> connections from more than one client.