d933eae338
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@12865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
23 lines
464 B
C++
23 lines
464 B
C++
#ifndef STK_PEER_HPP
|
|
#define STK_PEER_HPP
|
|
|
|
#include "stk_host.hpp"
|
|
#include <enet/enet.h>
|
|
|
|
class STKPeer
|
|
{
|
|
public:
|
|
STKPeer();
|
|
virtual ~STKPeer();
|
|
|
|
static void* receive_data(void* self);
|
|
|
|
virtual void sendPacket(char* data);
|
|
|
|
void connectToServer(STKHost* host, uint32_t ip, uint16_t port, uint32_t channelCount, uint32_t data);
|
|
protected:
|
|
ENetPeer* m_peer;
|
|
};
|
|
|
|
#endif // STK_PEER_HPP
|