Open and Close Port in Pocket PC 2003

  • Thread starter Thread starter Charles Law
  • Start date Start date
C

Charles Law

Hi,

Using VB.Net, I have tried to open a port in Pocket PC 2003 and connect to
an IP Address of another PC. I can close the Port, but cannot re-open it and
re-connect to another PC.

Error " ObjectDisposedException System.Net.Sockets.Socket" throw out.

Please help.

Thanks
 
HI Charles,

Do you have a particular need to open the same port?
If your app is the client you just call TcpClient.Connect and you have no
need to specify a port.

Now IIRC you can not reuse the same connection, meaning that you cannot:
Connnect()
..... send/receive/
Close
Connect()

You have to create a new TcpClient object.

Cheers,
 
Back
Top