
Winsock error "Address in Use"
I remember having the same trouble. tcp instantiates as client / server
communication. Gennerally, the calling app becomes the server and maintains
the connection. For reasons I didn't care to study further, problems arise
when the client / server connection is not closed properly or an attempt to
reverse the client / server roles of the two machine occures.
The reason I did not study it further is because the TCP control that comes
with VB also supports UDP. This is a connection-less communication protocol
and does not have the same problems you are encountering. Useing it is
similar to useing TCP so you will not have much trouble adapting your
application to use it. (I used it to do exactly what you are doing by the
way).
Quote:
> I've written asimple program using TCP in VB6 to transmit whatever I
> type on one
> machine, to another. I had assigned the port no 1005. It works fine for
> some time. after a few executions it starts saying "Address in use".
> I then have to change my port address to make it run. the same thing
> happens again until I
> change the port no. again.
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.