1/* Copyright 1992 NEC Corporation, Tokyo, Japan. 2 * 3 * Permission to use, copy, modify, distribute and sell this software 4 * and its documentation for any purpose is hereby granted without 5 * fee, provided that the above copyright notice appear in all copies 6 * and that both that copyright notice and this permission notice 7 * appear in supporting documentation, and that the name of NEC 8 * Corporation not be used in advertising or publicity pertaining to 9 * distribution of the software without specific, written prior 10 * permission. NEC Corporation makes no representations about the 11 * suitability of this software for any purpose. It is provided 12 * "as is" without express or implied warranty. 13 * 14 * NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 16 * NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 18 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 19 * OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 * PERFORMANCE OF THIS SOFTWARE. 21 */ 22 23/************************************************************************/ 24/* THIS SOURCE CODE IS MODIFIED FOR TKO BY T.MURAI 1997 25/************************************************************************/ 26 27#if !defined(lint) && !defined(__CODECENTER__) 28static char rcs_id[] = "$Id: engine.c 14875 2005-11-12 21:25:31Z bonefish $"; 29#endif 30 31#include "canna.h" 32 33#define CANNA_SERVER_NAME_LEN 128 34static char iroha_server_name[CANNA_SERVER_NAME_LEN] = {0, 0}; 35 36int 37RkSetServerName(char *s) 38{ 39 strlcpy(iroha_server_name, s, CANNA_SERVER_NAME_LEN); 40 return 0; 41} 42 43char * 44RkGetServerHost(void) 45{ 46// if (iroha_server_name[0]) { 47// return iroha_server_name; 48// } 49// else { 50 return (char *)0; 51// } 52} 53 54void 55close_engine(void) 56{ 57} 58 59