00001 /** 00002 * @file ccnr_net.h 00003 * 00004 * Part of ccnr - CCNx Repository Daemon. 00005 * 00006 */ 00007 00008 /* 00009 * Copyright (C) 2011 Palo Alto Research Center, Inc. 00010 * 00011 * This work is free software; you can redistribute it and/or modify it under 00012 * the terms of the GNU General Public License version 2 as published by the 00013 * Free Software Foundation. 00014 * This work is distributed in the hope that it will be useful, but WITHOUT ANY 00015 * WARRANTY; without even the implied warranty of MERCHANTABILITY or 00016 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00017 * for more details. You should have received a copy of the GNU General Public 00018 * License along with this program; if not, write to the 00019 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 * Boston, MA 02110-1301, USA. 00021 */ 00022 #ifndef CCNR_NET_DEFINED 00023 #define CCNR_NET_DEFINED 00024 00025 #include "ccnr_private.h" 00026 00027 void r_net_setsockopt_v6only(struct ccnr_handle *h,int fd); 00028 char *r_net_get_local_sockname(void); 00029 int r_net_listen_on(struct ccnr_handle *h,const char *addrs); 00030 int r_net_listen_on_address(struct ccnr_handle *h,const char *addr); 00031 int r_net_listen_on_wildcards(struct ccnr_handle *h); 00032 00033 #endif