|
| int | chunksize () |
| | Return the server side chunk size used to send data across network. More...
|
| |
| int | cid () |
| | Return the server side client identificator. More...
|
| |
| | Client (const Client &) |
| | Declared to avoid using of default copy constructor. More...
|
| |
| | Client (string path, string server, int port=6523, bool synchro=false, bool SSL=false, unsigned int timeout=10 *60 *1000) |
| | Constructor. More...
|
| |
|
virtual void | event (int op, Data d, int code=0) |
| |
| bool | exec (string cmd, Data *data=NULL) |
| | Execute commands on the server. More...
|
| |
| bool | isConnected () |
| | Tell if the object is connected to the MCS server. More...
|
| |
| bool | login (string user, string pass, string db="") |
| | Log in to a MCS server. More...
|
| |
| Client & | operator= (const Client &) |
| | Declared to avoid using of default assignment operator. More...
|
| |
|
void | writeToFile (int des) |
| |
| virtual | ~Client () |
| | Destructor. More...
|
| |
| void | Close () |
| | Close the socket. More...
|
| |
| string | getline () |
| | Reads from a socket until a newline is encountered. More...
|
| |
| Socket & | operator= (const Socket &) |
| | Declared to avoid using of default assignment operator. More...
|
| |
| void | print (string s) |
| | Writes a string in the socket adding a newline. More...
|
| |
| unsigned int | read (void *buf, unsigned int count) |
| | Reads data from the socket and write in a buffer. More...
|
| |
| unsigned int | recvData (char **buffer, unsigned int maxsize) |
| | Receive data and store in a buffer. More...
|
| |
| unsigned int | recvData (string filename) |
| | Receive data and write to a file. More...
|
| |
| unsigned int | recvData (int filedes) |
| | Receive data and write to a file descriptor. More...
|
| |
| unsigned int | recvData (ofstream &stream) |
| | Receive data and write to a ofstream object. More...
|
| |
| void | sendData (Serializable *from) |
| | Send a block of data through the socket. More...
|
| |
| | Socket (const Socket &) |
| | Declared to avoid using of default copy constructor. More...
|
| |
| | Socket (string host, unsigned short int port=0, unsigned int readTimeout=1000, unsigned int writeTimeout=1000, bool ssl=false) |
| | Constructor, to create a new connection. More...
|
| |
| | Socket (int sockfd, unsigned int readTimeout=1000, unsigned int writeTimeout=1000, void *ssl_ctx=NULL) |
| | Constructor based on an already existent socket. More...
|
| |
| unsigned int | write (void *buf, unsigned int count) |
| | Reads data from a buffer and write in the socket. More...
|
| |
| | ~Socket () |
| | Destructor. More...
|
| |
| | HostInfo (const HostInfo &) |
| | Declared to avoid using of default copy constructor. More...
|
| |
| | HostInfo (string host) |
| | Constructor. More...
|
| |
| | HostInfo (int sockfd) |
| | Constructor, to obtain information from an already connected socket. More...
|
| |
| string | hostname () |
| | Return the host name. More...
|
| |
| string | ipaddress () |
| | Return the host IP address. More...
|
| |
| HostInfo & | operator= (const HostInfo &) |
| | Declared to avoid using of default assignment operator. More...
|
| |
| | ~HostInfo () |
| | Destructor. More...
|
| |
|
bool | alwaysSameStructure () |
| |
|
void | dump (string fn) |
| |
|
bool | eof () |
| |
| void | insert (Record *rec) |
| | Insert a new record in the set. More...
|
| |
| void | insert (Record &rec) |
| | Copy a new record in the set. More...
|
| |
|
bool | know_nRows () |
| |
|
Record & | metarec () |
| |
| int | nFields () |
| | Returns number of fields. More...
|
| |
|
unsigned int | nRows () |
| |
| RecordSet & | operator= (const RecordSet &) |
| | Declared to avoid using of default assignment operator. More...
|
| |
|
unsigned int | pos () |
| |
|
Record * | prepRecToSend () |
| |
|
Record & | rec () |
| |
| | RecordSet (const RecordSet &) |
| | Declared to avoid using of default copy constructor. More...
|
| |
| | RecordSet () |
| | Build an empty record set. More...
|
| |
| void | setFieldMap (string s="") |
| | Set up a field map for each record in the recordset. More...
|
| |
| bool | setFirst () |
| | Set the record pointer to the first position. More...
|
| |
| bool | setLast () |
| | Set the record pointer to the last position. More...
|
| |
| bool | setNext () |
| | Set the record pointer to the next position. More...
|
| |
| bool | setPos (unsigned int i) |
| | Set the record pointer to the i-th position. More...
|
| |
| bool | setPrev () |
| | Set the record pointer to the previous position in the set. More...
|
| |
| bool | setWhere (int i, string equalTo) |
| | Set the record pointer to the position which satisfies a string condition. More...
|
| |
| bool | setWhere (int field, int equalTo) |
| | Set the record pointer to the position which satisfies an integer condition. More...
|
| |
| virtual | ~RecordSet () |
| | Destructor. More...
|
| |
Connect to a MCS server as a client.
This class let you connect to a MCS server as a client, execute command on it, upload and download files and binary data. A typical usage is as follow:
...
try {
cli->
login(user, pass, dbna);
{
cout << cli->
msg.pop().
sval() << endl;
exit(1);
}
cli->record()[0].ival();
cli->record().field("MyField").sval();
}
}
Definition at line 7538 of file mcs.hh.