// See accompanying file LICENSE or visit the Thrift site at:
// http://developers.facebook.com/thrift/
+#include <cstring>
#include <sys/socket.h>
#include <sys/poll.h>
#include <sys/types.h>
struct addrinfo hints, *res, *res0;
int error;
char port[sizeof("65536") + 1];
- memset(&hints, 0, sizeof(hints));
+ std::memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
int numEintrs = 0;
while (true) {
- memset(fds, 0 , sizeof(fds));
+ std::memset(fds, 0 , sizeof(fds));
fds[0].fd = serverSocket_;
fds[0].events = POLLIN;
if (intSock2_ >= 0) {
// http://developers.facebook.com/thrift/
#include <config.h>
+#include <cstring>
+#include <sstream>
#include <sys/socket.h>
#include <sys/poll.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
-#include <sstream>
#include "concurrency/Monitor.h"
#include "TSocket.h"
struct pollfd fds[1];
- memset(fds, 0 , sizeof(fds));
+ std::memset(fds, 0 , sizeof(fds));
fds[0].fd = socket_;
fds[0].events = POLLOUT;
ret = poll(fds, 1, connTimeout_);
res0 = NULL;
int error;
char port[sizeof("65536")];
- memset(&hints, 0, sizeof(hints));
+ std::memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;