My Community
May 21, 2013, 07:34:57 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: 6/29/2011 RakNet 4.022 released.
Home
Help
Search
Login
Register
My Community
>
RakNet
>
RakNet C++ Support
>
what will happen if connecting to a connected peer
Pages: [
1
]
« previous
next »
Print
Author
Topic: what will happen if connecting to a connected peer (Read 195 times)
pusheax
Not-a-newbie
Karma: 0
Posts: 10
what will happen if connecting to a connected peer
«
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: 293
Posts: 6771
Re: what will happen if connecting to a connected peer
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
RakNet
-----------------------------
=> Version Announcements
=> RakNet C++ Support
=> SWIG and C# support
=> General Discussion
=> Feature Requests
=> Games made with RakNet
-----------------------------
General Discussion
-----------------------------
=> Job Board
=> Programming
=> Anything Goes
-----------------------------
Echo Chamber
-----------------------------
=> Downloads
=> Feedback
Loading...