mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-26 07:35:40 +00:00
25 lines
354 B
C++
25 lines
354 B
C++
#ifndef _TCPSEND_H_
|
|
#define _TCPSEND_H_
|
|
|
|
#include <string>
|
|
#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
|