somewhere

This commit is contained in:
Dhanya Maliakal
2017-11-23 14:53:40 +01:00
parent 8c45f94496
commit ad64df01c7
3 changed files with 14 additions and 17 deletions

View File

@ -160,6 +160,20 @@ public:
void* GetsocketDescriptor () { return socketDescriptor; };
/**
* Connect client socket to server socket
* @returns 1 for fail, 0 for success
*/
int Connect() {
if (zmq_connect(socketDescriptor, serverAddress) < 0) {
PrintError ();
Close ();
return 1;
}
return 0;
}
/**
* Unbinds the Socket
*/