src/netio.h File Reference

#include "msgprinter.h"
#include "reader.h"

Include dependency graph for netio.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum _rdd_net_flags_t rdd_net_flags_t

Enumerations

enum  _rdd_net_flags_t { RDD_NET_COMPRESS = 0x1 }

Functions

int rdd_await_connection (RDD_MSGPRINTER *printer, int server_sock, int *client_sock)
int rdd_init_server (RDD_MSGPRINTER *printer, unsigned int port, int *server_sock)
int rdd_recv_info (RDD_READER *reader, char **filename, rdd_count_t *file_size, rdd_count_t *block_size, rdd_count_t *split_size, int *ewf, unsigned *flags)
int rdd_send_info (RDD_WRITER *writer, char *file_name, rdd_count_t file_size, rdd_count_t block_size, rdd_count_t split_size, int ewf, unsigned flags)


Typedef Documentation


Enumeration Type Documentation

Enumerator:
RDD_NET_COMPRESS 

Definition at line 39 of file netio.h.


Function Documentation

int rdd_await_connection ( RDD_MSGPRINTER printer,
int  server_sock,
int *  client_sock 
)

Definition at line 382 of file netio.c.

References error(), net_verbose, RDD_BADARG, RDD_EOPEN, rdd_mp_message(), rdd_mp_unixmsg(), RDD_MSG_ERROR, RDD_MSG_INFO, and RDD_OK.

Here is the call graph for this function:

int rdd_init_server ( RDD_MSGPRINTER printer,
unsigned int  port,
int *  server_sock 
)

Definition at line 326 of file netio.c.

References error(), RDD_BADARG, RDD_EOPEN, rdd_mp_unixmsg(), RDD_MSG_ERROR, and RDD_OK.

Here is the call graph for this function:

int rdd_recv_info ( RDD_READER reader,
char **  filename,
rdd_count_t file_size,
rdd_count_t block_size,
rdd_count_t split_size,
int *  ewf,
unsigned *  flags 
)

Definition at line 225 of file netio.c.

References RDD_BADARG, RDD_ERANGE, RDD_ESYNTAX, RDD_MAX_FILENAMESIZE, RDD_NOMEM, RDD_OK, receive(), and unpack_netnum().

Here is the call graph for this function:

int rdd_send_info ( RDD_WRITER writer,
char *  file_name,
rdd_count_t  file_size,
rdd_count_t  block_size,
rdd_count_t  split_size,
int  ewf,
unsigned  flags 
)

Definition at line 129 of file netio.c.

References pack_netnum(), RDD_BADARG, RDD_ERANGE, RDD_MAX_FILENAMESIZE, RDD_OK, and rdd_writer_write().

Here is the call graph for this function:


Generated on Sun Feb 6 12:36:18 2011 for rdd by  doxygen 1.5.6