Correct disconnection

Ask for help regarding any technical issue or report any bug or OS independent issues.
Locked
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Correct disconnection

Post by ElvenProgrammer »

This is for you GURU of network/thread programming: probably I'm not closing the thread or connection to the map server correctly because also when the program is closed the server still recognizes a user playing.

Refer to: map_server.cpp, main.cpp
User avatar
natsuki
Novice
Novice
Posts: 105
Joined: 22 May 2004, 20:35
Contact:

Post by natsuki »

i think (from what i know..) this is how it should be done:

-login: ->login server->success->close socket
-char: ->char server->success->close socket
-map: ->map server->success->close

but the vidar login server will not say any disconnection
only connections

try to set in vidar.ini: 'LLog=1'
and look at vidar\vdata\vlog\vlog.txt
to see the disconnections ^^
^^いつも笑顔でもっとよろこび。。^^
-- shimokawa natsuki --
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

The disconnect sequence is right, but I think is not correct how I close the socket to map server or the thread.
Locked