2012-06-11 14:34:17 +01:00
|
|
|
#ifndef READWRITE_H
|
2012-05-21 04:03:17 +01:00
|
|
|
|
2012-06-11 14:34:17 +01:00
|
|
|
#define READWRITE_H
|
2012-05-21 04:03:17 +01:00
|
|
|
|
2012-06-06 09:55:08 +01:00
|
|
|
int socket_connect(struct sockaddr* to, struct sockaddr* from);
|
2012-05-21 04:03:17 +01:00
|
|
|
off64_t socket_nbd_read_hello(int fd);
|
|
|
|
void socket_nbd_read(int fd, off64_t from, int len, int out_fd, void* out_buf);
|
|
|
|
void socket_nbd_write(int fd, off64_t from, int len, int out_fd, void* out_buf);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|