equal
deleted
inserted
replaced
66 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, (unsigned int) flags)); |
66 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, (unsigned int) flags)); |
67 } |
67 } |
68 |
68 |
69 inline int hpi::send(int fd, char *buf, int nBytes, int flags) { |
69 inline int hpi::send(int fd, char *buf, int nBytes, int flags) { |
70 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, (unsigned int) flags)); |
70 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, (unsigned int) flags)); |
|
71 } |
|
72 |
|
73 inline int hpi::raw_send(int fd, char *buf, int nBytes, int flags) { |
|
74 return send(fd, buf, nBytes, flags); |
71 } |
75 } |
72 |
76 |
73 inline int hpi::timeout(int fd, long timeout) { |
77 inline int hpi::timeout(int fd, long timeout) { |
74 julong prevtime,newtime; |
78 julong prevtime,newtime; |
75 struct timeval t; |
79 struct timeval t; |