My Community
October 20, 2014, 06:18:45 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: 6/29/2011 RakNet 4.022 released.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: what will happen if connecting to a connected peer  (Read 662 times)
pusheax
Not-a-newbie
*

Karma: 0
Posts: 10


View Profile
« on: March 05, 2013, 05:13:52 AM »

connect for 1th time

C--------------------------------------------<CONNECTED>----------------------------------->S:
got                                                                                                                                 got
[ID_CONNECTION_REQUEST_ACCEPTED]                                                           [ID_NEW_INCOMING_CONNECTION]

ok , c-to-s connection is established!
what will happend if i connect from C to S again ?
m_Client->Connect(..........);
what message id will get in C and S site ? and what will cause this messageID to be repied : ID_ALREADY_CONNECTED:
Report to moderator   Logged
Rak'kar
Administrator
Hero Member
*****

Karma: 295
Posts: 6895



View Profile WWW
« Reply #1 on: March 08, 2013, 01:10:21 AM »

The connect call will fail if you call it on a system you are already connected to. ID_ALREADY_CONNECTED is if the other side still thinks you are connected, but your own machine does not. For example, you crashed and restarted a game client.
Report to moderator   Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.17 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!