Supermodel/Src/Network/TCPSend.h

25 lines
354 B
C
Raw Normal View History

#ifndef _TCPSEND_H_
#define _TCPSEND_H_
#include <string>
2020-07-27 10:28:48 +00:00
#include "SDLIncludes.h"
class TCPSend
{
public:
TCPSend(std::string& ip, int port);
~TCPSend();
bool Send(const void* data, int length);
bool Connect();
bool Connected();
private:
std::string m_ip;
int m_port;
TCPsocket m_socket; // sdl socket
};
#endif