Problems using Winsock?? 
Author Message
 Problems using Winsock??

Hello All

Before I start if this is in the wrong group then IM sorry.

I writing a project for work which does the following.
1)Client App Sends a broadcast message using the UDP Protocol which the
Server App responds to.
    The reason for this is so the client App can get the IP address of the
Server App.
2)The Client App then opens a TCP Connection to the Server App.
3)The Server App then asks the Client App to login using MD5 Challenge and
4)Once logged in the client then requests the complete db recordset on the
Server App.
5)Then the Client App can then add and remove db records on the Server App

It all worked when I was using the UDP Protocol to communicate to each
BUT This didn't sort of work properly for multiple clients.
So I then decided to only use the UDP protocol to send Broadcast messages on
the LAN to retrieve the Server Apps IP.
And to use TCP to talk to each other.
i.e.  Login and Logout, Connect to a database on another machine using the
Server App.

The reason I need to retrieve the Server Apps IP is because it can then be
run on any machine with or without static IP's

Right this is where IM having problems.
Every now and then when my Client App exits it doesn't seem to close the
socket, And it says the following:
Run-time error '10048':

Address in use

Why is this?
It doesn't seem to do it in VC++.

So if anyone can help me please reply.

Thanks in advance.
Paul Kirby

Webmaster of http://www.*-*-*.com/

Thu, 13 May 2004 17:41:52 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Problems using winsock control in an ActtiveX DLL

2. ftp-client problem using winsock control in visual basic 6

3. Problem using winsock control array

4. Problem using Winsock (mswinsock.ocx) in VB web page.

5. Problem using winsock (mswinsck.ocx) in VB web page.

6. Problem with TCP connection using Winsock control

7. i have got Problems with using Winsock under VB 5

8. Problem using telnet with winsock

9. Problem using the Winsock Control to receive data in VB5

10. Problems finding correct IP address using WINSOCK Control with 2 network adapters

11. Problem using the Winsock Control to receive data in VB5

12. Winsock problem using UDP - Cannot communicate in LAN


Powered by phpBB® Forum Software