stk-code_catmod/dev/SocketsBase/stk_peer.hpp
hilnius d933eae338 base commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@12865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-16 23:54:02 +00:00

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