ccnr_io.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef CCNR_IO_DEFINED
00024 #define CCNR_IO_DEFINED
00025
00026 #include "ccnr_private.h"
00027
00028 void r_io_shutdown_all(struct ccnr_handle *h);
00029 void r_io_prepare_poll_fds(struct ccnr_handle *h);
00030 void r_dispatch_process_internal_client_buffer(struct ccnr_handle *h);
00031 void r_io_send(struct ccnr_handle *h,struct fdholder *fdholder,const void *data,size_t size,off_t *offsetp);
00032 int r_io_destroy_face(struct ccnr_handle *h,unsigned filedesc);
00033 int r_io_open_repo_data_file(struct ccnr_handle *h, const char *name, int output);
00034 int r_io_repo_data_file_fd(struct ccnr_handle *h, unsigned repofile, int output);
00035 void r_io_shutdown_client_fd(struct ccnr_handle *h,int fd);
00036 int r_io_accept_connection(struct ccnr_handle *h,int listener_fd);
00037 struct fdholder *r_io_record_fd(struct ccnr_handle *h,int fd,void *who,socklen_t wholen,int setflags);
00038 void r_io_register_new_face(struct ccnr_handle *h,struct fdholder *fdholder);
00039 int r_io_enroll_face(struct ccnr_handle *h,struct fdholder *fdholder);
00040 struct fdholder *ccnr_r_io_fdholder_from_fd(struct ccnr_handle *h,unsigned filedesc);
00041 struct fdholder *r_io_fdholder_from_fd(struct ccnr_handle *h,unsigned filedesc);
00042
00043 #endif