Files
flexnbd-c/readwrite.h
Matthew Bloch 7eaf5c3fd3 Initial, untested mirror implementation and resolved some type confusion
around struct ip_and_mask pointers (no idea how it worked before).  Added a
header for readwrite.h used in mirror implementation.
2012-05-21 04:03:17 +01:00

12 lines
296 B
C

#ifndef __READWRITE_H
#define __READWRITE_H
int socket_connect(struct sockaddr* to);
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