Correct disconnection

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

Correct disconnection

Post by ElvenProgrammer » 30 May 2004, 11:35

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, 21:35
Contact:

Post by natsuki » 30 May 2004, 23:38

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 04 Jun 2004, 16:54

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