You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
347 B
22 lines
347 B
#pragma once
|
|
|
|
#include "ofMain.h"
|
|
#include "ofxNetwork.h"
|
|
#include "ofxJSONElement.h"
|
|
|
|
class TCPClient{
|
|
public:
|
|
static shared_ptr<TCPClient> instance();
|
|
|
|
void setup(string ip, int port);
|
|
void update();
|
|
void draw();
|
|
|
|
void send(string message);
|
|
|
|
private:
|
|
TCPClient();
|
|
static shared_ptr<TCPClient> _instance;
|
|
|
|
ofxTCPClient _tcpClient;
|
|
};
|
|
|