|
-
Sep 29th, 2000, 01:01 PM
#1
Thread Starter
Member
I want to connect to the smtp through the lan at the office, it works well the first time but.......
Next tries are always returning 10048 error: "Address already in use"
Any idea to get rid of that ?&%&@# sh****
-
Sep 29th, 2000, 01:16 PM
#2
Fanatic Member
What winsock is basicly saying is it's aleady connected to somthing and your address is in use. What you need to do is on your disconnect button or whatever, is close the connection by using winsock1.close
Ok?
-
Sep 29th, 2000, 01:24 PM
#3
Thread Starter
Member
here is the code that i use:
Winsock1.Close
Do While Winsock1.State <> sckClosed
DoEvents
STATUS.Text = "disconnecting from " & SMTP_HOST & ". Please wait."
Loop
but it does'nt work if i try after it
-
Sep 29th, 2000, 01:30 PM
#4
That is because there is a port open and it's in use. Try changing the port you are connecting to.
-
Sep 29th, 2000, 01:32 PM
#5
Thread Starter
Member
My conclusion is that the port is opened but why on the first time it works but not on the next ?
-
Sep 29th, 2000, 02:38 PM
#6
Frenzied Member
this is because its not closing the port properly.
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
|