handmade/include/Client.h
2022-01-04 09:05:11 -05:00

29 lines
498 B
C++

#pragma once
#include "debug.h"
#include <string>
#include <vector>
#include <SDL_net.h>
class Client
{
std::string mHost;
Uint16 mPort;
int mChannel;
std::vector<UDPsocket> UDPsocks;
public:
Client (void)
{
DEBUG_LOG ("Client::Client ()");
}
Client (const char* host, const Uint16 port, const int channel);
UDPsocket UDP_Open (const char* host, const Uint16 port, const int channel);
void UDP_CloseAll (void);
UDPsocket First (void)
{
return UDPsocks.at (0);
}
};