Files
flexnbd-c/src/readwrite.h

17 lines
498 B
C
Raw Normal View History

2012-06-11 14:34:17 +01:00
#ifndef READWRITE_H
2012-06-11 14:34:17 +01:00
#define READWRITE_H
#include <sys/types.h>
#include <sys/socket.h>
int socket_connect(struct sockaddr* to, struct sockaddr* from);
2012-06-22 10:05:41 +01:00
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 );
#endif