Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Winsock problem

Author
Message
The Fire Within
19
Years of Service
User Offline
Joined: 1st Apr 2004
Location: localhost (127.0.0.1)
Posted: 1st Jan 2005 03:19
What is the right way to close winsock if you have a connection. I called the shutdown command and the receive until it returned 0, but it never returns 0.
What is the correct way???

Happy new year, everyone!!!!
CattleRustler
Retired Moderator
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 1st Jan 2005 03:29
which winsock? Exeat's winsock plugin?

The Fire Within
19
Years of Service
User Offline
Joined: 1st Apr 2004
Location: localhost (127.0.0.1)
Posted: 1st Jan 2005 19:22
Not a already made plugin, but for my own plugin.
After i have received information for the net, and i want to close DBP it gives an error.
If i insert a shutdown method given on the msdn site, the program never quits.
So my question was, how do you properly shutdown winsock after you have connected or bound to a server????( with a home made plugin )
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 1st Jan 2005 19:46
is there a .close method?

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
The Fire Within
19
Years of Service
User Offline
Joined: 1st Apr 2004
Location: localhost (127.0.0.1)
Posted: 1st Jan 2005 20:22
Not that i know, on the msdn site they said that you must shutdown sending data, listen to the socket until it returns 0 and then closesocket( socket);

But it never returns 0, so the program goes in a never ending loop.
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 1st Jan 2005 21:03
can you give us a link to the msdn page

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
The Fire Within
19
Years of Service
User Offline
Joined: 1st Apr 2004
Location: localhost (127.0.0.1)
Posted: 2nd Jan 2005 18:48
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/graceful_shutdown_linger_options_and_socket_closure_2.asp
In the middle of the page, or so, there's a box that contains the steps to close winsock. I need a solution for both sides...
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 2nd Jan 2005 19:37
is it possible to look at the section of code which shuts down winsock?

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
The Fire Within
19
Years of Service
User Offline
Joined: 1st Apr 2004
Location: localhost (127.0.0.1)
Posted: 2nd Jan 2005 20:29
That's the problem, there's no code that actualy says how it must be done. I followed these steps, but it doesn't work.
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 2nd Jan 2005 22:48
what code have you been trying to do it with?

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 2nd Jan 2005 23:32
this website might help you
http://www.nullterminator.net/winsock.html

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
darkdomy
20
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 3rd Jan 2005 00:34
hello all

other winsock Tutorial

http://www.hal-pc.org/~johnnie2/winsock.html

plese Create a free and complete winsock plug-in.

Send Via Smpt protocol , Ftp ,Html .

hello all.

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
darkdomy
20
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 3rd Jan 2005 00:38
hello all.
use http://clusty.com for find whith Categories.


W http://clusty.com

http://clusty.com/search?v%3afile=viv_53%4023%3aqmoCgH&v%3aframe=list&v%3astate=root%7cN306&

hello all , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 3rd Jan 2005 01:11
domy - edit your posts

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2

Login to post a reply

Server time is: 2024-02-21 00:31:25
Your offset time is: 2024-02-21 00:31:25