31 #endif // #ifdef _MSC_VER 43 #ifdef CHECK_MEMORY_LEAKS 45 #endif // #ifdef CHECK_MEMORY_LEAKS 54 for (
int wait = 1000;
true; wait += 1000) {
87 std::vector<unsigned char> msg;
88 msg.insert(msg.end(), toSend.begin(), toSend.end());
tcpip::Socket * mySocket
the socket to transfer the data
void connect()
Connects to host_:port_.
OutputDevice_Network(const std::string &host, const int port)
Constructor.
std::ostream & getOStream()
Returns the associated ostream.
std::ostringstream myMessage
packet buffer
virtual const char * what() const
~OutputDevice_Network()
Destructor.
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
void send(const std::vector< unsigned char > &buffer)
virtual void postWriteHook()
Sends the data which was written to the string stream over the socket.