Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $#include "Netwerks/Server/Client/Client.h"
- $using namespace Netwerks;
- class Client {
- void OnConnected();
- void OnDisconnected(unsigned short reason);
- bool IsReady();
- bool IsDropped();
- void Drop();
- //Bandwidth
- long GetIncomingBandwidth();
- long GetOutgoingBandwidth();
- //Packet
- long GetPacketsLost();
- long GetPacketsSent();
- long GetPacketLoss();
- //Round trip
- long GetRTT();
- long GetLastRTT();
- long GetRTTVariance();
- unsigned short UserID();
- Leadwerks::BasePlayer* GetPlayer();
- };
- /*
- In cmd (windows) do:
- cd ./ProjectName/Source/ (get to your project's source directory)
- tolua++ -o Tolua/tolua_BindingName.cpp -n BindingName BindingName.pkg
- so for this ^ pkg file I do:
- tolua++ -o Tolua/tolua_Client.cpp -n Client Tolua/pkg/Client.pkg
- then don't forget to run the open method of the new 'Client' binding somewhere.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement