Winsocks and Modules??? 
Author Message
 Winsocks and Modules???

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)



Mon, 20 May 2002 03:00:00 GMT  
 Winsocks and Modules???
Check the port address that the new server app is using, you may have to
change the client's remote TCP/IP port.


Mon, 10 Jun 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. WinSock VB Module

2. Winsocks and Modules???

3. SMTP email using Winsock in a Module

4. Using winsock in Class Module

5. Creating a new instance of Winsock in a Class Module

6. Winsock Module and HTTP help!!!!

7. Winsock control in class module

8. How to create Winsock Control in class modules

9. Winsock Module

10. Winsock Module

11. Modules, Modules, Modules

12. VBA Module to Module

 

 
Powered by phpBB® Forum Software