Show client_socket.cc syntax highlighted
#include <exception>
#include <iostream>
#include <unistd.h>
#include "Socket.h"
using namespace std;
using namespace Net;
int main(int argc, char **argv)
{
try {
Socket s("127.0.0.1", "4321", true);
int sz;
s.print("hello world\n");
sleep(10);
} catch(exception &e) {
cerr << e.what() << endl;
}
return 0;
}
See more files for this project here