I'm having a problem with a client & server app I'm developing. I'm
very new to vb, so it's most probably something obvious. Thanks in
advance for any help!
This app is simple, the client sends data via TCP/IP to a remote host
where a server app is receiving. They both work fine using conventional
winsock controls, but the server app was just for testing, and it's role
had to be integrated into an already existing program.
This program has a "Sub Main ()" that runs in a module, which is called
at the end of "Form_Load()". (The Winsock control has been inserted
into the Form). The app begins listening for a connection request in
Form_Load ()...Once in the "main" procedure in the module, it loops
waiting for a variable to contain data.
Problem is:
The normal winsock events (DataArrival & ConnectionRequest) don't seem
to occur as they should. The client app trying to make a connection
usually gets an error or times out.
Is there something about the scope of a module that prevents these
winsock events (in the Form) from triggering? I have a "DoEvents" in
main's loop, but it doesn't seem to matter. help.
thanks,
(feel free to email me)