Introduce socket_nbd_write_hello() and a macro to display errno results nicely

This commit is contained in:
nick
2013-02-08 15:53:27 +00:00
parent 56ce7d35c2
commit ecfd108a53
3 changed files with 21 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
int socket_connect(struct sockaddr* to, struct sockaddr* from);
int socket_nbd_read_hello(int fd, off64_t * size);
int socket_nbd_write_hello(int fd, off64_t size);
void socket_nbd_read(int fd, off64_t from, int len, int out_fd, void* out_buf, int timeout_secs);
void socket_nbd_write(int fd, off64_t from, int len, int out_fd, void* out_buf, int timeout_secs);
int socket_nbd_disconnect( int fd );