My Community
May 19, 2013, 02:58:23 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
>
General Discussion
>
Programming
>
GetTime()
Pages: [
1
]
« previous
next »
Print
Author
Topic: GetTime() (Read 1248 times)
Rannion
Not-a-newbie
Karma: 0
Posts: 25
GetTime()
«
on:
December 13, 2006, 12:30:50 PM »
Is there a way to have in RakPeer a time which would be synchronized ?
Like I have a server and when a client connect to the server, it is automatically in sync with some time on the server.
Like this when the server says that client will start that action at time t, all the client knows excatly when they will have to start that action.
And if it's not existing at the moment, could it be implemented in the future ?
Report to moderator
Logged
Rak'kar
Administrator
Hero Member
Karma: 293
Posts: 6771
Re: GetTime()
«
Reply #1 on:
December 13, 2006, 01:15:10 PM »
It's there internally. See the timestamping packets part of the documentation.
Report to moderator
Logged
Rannion
Not-a-newbie
Karma: 0
Posts: 25
Re: GetTime()
«
Reply #2 on:
December 18, 2006, 05:37:32 AM »
Excuse me but looking at what's going on in ReplicaManager.cpp, I don't understand how your system is working.
First when we are in the update, just before the call to Serialize() you set sendTimestamp=false;
Also even if we change this to force it to send the timestamp, it is then sending currentTime, when the ping is it taken into account ?
Report to moderator
Logged
Rak'kar
Administrator
Hero Member
Karma: 293
Posts: 6771
Re: GetTime()
«
Reply #3 on:
December 18, 2006, 02:06:59 PM »
The recipient takes ping into account.
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...