Searched refs:CHK_ERR (Results 1 - 3 of 3) sorted by relevance
/barrelfish-master/lib/openssl-1.0.0d/demos/ssl/ |
H A D | serv.cpp | 36 #define CHK_ERR(err,s) if ((err)==-1) { perror(s); exit(1); } macro 82 listen_sd = socket (AF_INET, SOCK_STREAM, 0); CHK_ERR(listen_sd, "socket"); 90 sizeof (sa_serv)); CHK_ERR(err, "bind"); 94 err = listen (listen_sd, 5); CHK_ERR(err, "listen"); 98 CHK_ERR(sd, "accept");
|
H A D | cli.cpp | 25 #define CHK_ERR(err,s) if ((err)==-1) { perror(s); exit(1); } macro 50 sd = socket (AF_INET, SOCK_STREAM, 0); CHK_ERR(sd, "socket"); 58 sizeof(sa)); CHK_ERR(err, "connect");
|
H A D | inetdsrv.cpp | 22 #define CHK_ERR(err,s) if ((err)==-1) \ macro
|
Completed in 103 milliseconds