|
-
Mar 17th, 2010, 06:03 AM
#1
Thread Starter
New Member
TCP client
I am communicating with a commercially made remote device( a cellular 3G digi WAN) configured as a server.
My PC runs XP and the server sw is written in VB.net 2003. A code snippet is as follows:
dim tcpclient as new tcpclient()
tcpclient.connect ("abcdefg.org",1234)
.
.
.
dim netstream As NetworkStream = tcpClient.GetStream()
in my send & receive routines.
The application is working fine but if I close the client using tcpclient.close or if the server is turned off, loses connection or the net crahses for some reason, i cannot reconnect again without rebooting the client. I don't want to do this because the client will be unattended and will have to reconnect automatically.
Some expert advice would be appreciated. i can post the whole client code if that helps.
neil9
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|