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: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Correct disconnection

Post by ElvenProgrammer » Sun May 30, 2004 11:35 am

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: Sat May 22, 2004 9:35 pm
Contact:

Post by natsuki » Sun May 30, 2004 11:38 pm

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: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Fri Jun 04, 2004 4:54 pm

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