Winsock.bas Closing Socket? 
Author Message
 Winsock.bas Closing Socket?

Hi,

I'm experimentating a bit with fetching a HTML file from
my webserver using the winsock.bas API calls.

So I coded a quick application... connected... gets data...
perfect! I close things using WSACleanUp and close the
socket (not very sure about these 2, something like that).

I make some modifications... start again... nothing...
I reboot, start again... everything's okay!

Again... Nothing... reboot... okay... nothing... reboot... okay... etc.

Now my question: what do you think is wrong here?

(It does connect the second time, but fetches NO data)

--
Tom van der Kleij



Mon, 08 Jul 2002 03:00:00 GMT  
 Winsock.bas Closing Socket?
I think your connection is still alive.

why don't you use winsock.close statement instead of WSACleanUp

Can you put some code here, may be we can take a look and see what may be
wrong.

resistans a crit:

Quote:
> Hi,

> I'm experimentating a bit with fetching a HTML file from
> my webserver using the winsock.bas API calls.

> So I coded a quick application... connected... gets data...
> perfect! I close things using WSACleanUp and close the
> socket (not very sure about these 2, something like that).

> I make some modifications... start again... nothing...
> I reboot, start again... everything's okay!

> Again... Nothing... reboot... okay... nothing... reboot... okay... etc.

> Now my question: what do you think is wrong here?

> (It does connect the second time, but fetches NO data)

> --
> Tom van der Kleij



Mon, 08 Jul 2002 03:00:00 GMT  
 Winsock.bas Closing Socket?

Quote:
> I think your connection is still alive.

That might be true...

Quote:

> why don't you use winsock.close statement instead of WSACleanUp

Because winsock.close is used to close a connection when we use the
winsock control. I use API calls.

Quote:

> Can you put some code here, may be we can take a look and see what may be
> wrong.

It is quite a bit of code... but I think the connection is still open,
anybody here knows how to close it using the winsock.bas module
and API calls?

--
Tom van der Kleij



Mon, 08 Jul 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Winsock DataArrival, socket closing and can't GetData before receiving all the data

2. Winsock.bas (pure Winsock API programming)

3. Winsock.bas (pure Winsock API programming)

4. WinSock v1.1 and v2.2 declares for VB - winsock.bas (0/1)

5. WinSock v1.1 and v2.2 declares for VB - winsock.bas (1/1)

6. socket.bas

7. OS port close inaddition to Winsock port close

8. Winsock BAS File NEEDED, Please.

9. Here is The Winsock.bas for 16-bit

10. Winsock.bas

11. Winsock.bas

12. Winsock.bas for 32bit VB

 

 
Powered by phpBB® Forum Software