Chromium Code Reviews| Index: base/unix_domain_socket_posix.h |
| diff --git a/base/unix_domain_socket_posix.h b/base/unix_domain_socket_posix.h |
| index c0b40e80e3f236e44bfa694c569b1b77593da5d9..9a1d80ad376e66ff1b425a8989f3e20ab1070300 100644 |
| --- a/base/unix_domain_socket_posix.h |
| +++ b/base/unix_domain_socket_posix.h |
| @@ -8,6 +8,8 @@ |
| #include <sys/types.h> |
| #include <vector> |
|
Evan Martin
2009/06/18 00:36:08
This file is getting bigger, can you put a descrip
|
| +class Pickle; |
| + |
| namespace base { |
| // Use sendmsg to write the given msg and include a vector |
| @@ -17,6 +19,15 @@ bool SendMsg(int fd, const void* msg, size_t length, |
| // Use recvmsg to read a message and an array of file descriptors. Returns |
| // -1 on failure. Note: will read, at most, 16 descriptors. |
| ssize_t RecvMsg(int fd, void* msg, size_t length, std::vector<int>* fds); |
| +// Perform a sendmsg/recvmsg pair by sending the given Pickle as a request |
| +// along with a file descriptor over which the reply is read. |
|
Evan Martin
2009/06/18 00:36:08
The way this is worded, it sounds like you're send
|
| +// fd: descriptor to send the request on |
| +// reply: buffer for the reply |
| +// reply_len: size of |reply| |
| +// result_fd: (may be NULL) the file descriptor returned in the reply (if any) |
| +// request: the bytes to send in the request |
| +ssize_t SendRecvMsg(int fd, uint8_t* reply, unsigned reply_len, int* result_fd, |
| + const Pickle& request); |
| } // namespace base |