#include <ot_lib.h>
Static Public Member Functions | |
static ost::TCPStream * | connectTo (const string &hostName, int port) |
static void | write (ost::TCPStream *s, const stringstream &str, bool flush=true) |
static void | write (ost::TCPStream *s, const ot_obj &o) |
static string | readString (ost::TCPStream *s, int maxLen) |
static int | readInt (ost::TCPStream *s) |
static void | readData (ost::TCPStream *s, stringstream &str, int len) |
static ost::TCPStream* ot_lib::utilityTCP::connectTo | ( | const string & | hostName, | |
int | port | |||
) | [static] |
static void ot_lib::utilityTCP::write | ( | ost::TCPStream * | s, | |
const stringstream & | str, | |||
bool | flush = true | |||
) | [static] |
static void ot_lib::utilityTCP::write | ( | ost::TCPStream * | s, | |
const ot_obj & | o | |||
) | [static] |
static string ot_lib::utilityTCP::readString | ( | ost::TCPStream * | s, | |
int | maxLen | |||
) | [static] |
static int ot_lib::utilityTCP::readInt | ( | ost::TCPStream * | s | ) | [static] |
static void ot_lib::utilityTCP::readData | ( | ost::TCPStream * | s, | |
stringstream & | str, | |||
int | len | |||
) | [static] |