00001 /** 00002 * @file ccn/ccnd.h 00003 * 00004 * Definitions pertaining to the CCNx daemon. 00005 * 00006 * Part of the CCNx C Library. 00007 * 00008 * Copyright (C) 2008, 2009 Palo Alto Research Center, Inc. 00009 * 00010 * This library is free software; you can redistribute it and/or modify it 00011 * under the terms of the GNU Lesser General Public License version 2.1 00012 * as published by the Free Software Foundation. 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. You should have received 00017 * a copy of the GNU Lesser General Public License along with this library; 00018 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, 00019 * Fifth Floor, Boston, MA 02110-1301 USA. 00020 */ 00021 00022 #ifndef CCN_CCND_DEFINED 00023 #define CCN_CCND_DEFINED 00024 00025 #define CCN_DEFAULT_LOCAL_SOCKNAME "/tmp/.ccnd.sock" 00026 #define CCN_LOCAL_PORT_ENVNAME "CCN_LOCAL_PORT" 00027 00028 /** 00029 * ccnx registered port number 00030 * see http://www.iana.org/assignments/port-numbers 00031 */ 00032 #define CCN_DEFAULT_UNICAST_PORT_NUMBER 9695U 00033 #define CCN_DEFAULT_UNICAST_PORT "9695" 00034 00035 /** 00036 * Link adapters sign on by sending this greeting to ccnd. 00037 * Not for use over the wire. 00038 */ 00039 #define CCN_EMPTY_PDU "CCN\202\000" 00040 #define CCN_EMPTY_PDU_LENGTH 5 00041 #endif