1 /* 2 * $Id: jd_sock.h,v 1.6 2005/04/10 15:26:37 aonoto Exp $ 3 */ 4 5 /* 6 * FreeWnn is a network-extensible Kana-to-Kanji conversion system. 7 * This file is part of FreeWnn. 8 * 9 * Copyright Kyoto University Research Institute for Mathematical Sciences 10 * 1987, 1988, 1989, 1990, 1991, 1992 11 * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 12 * Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 13 * Copyright FreeWnn Project 1999, 2000, 2003 14 * 15 * Maintainer: FreeWnn Project <freewnn@tomo.gr.jp> 16 * 17 * This library is free software; you can redistribute it and/or 18 * modify it under the terms of the GNU Lesser General Public 19 * License as published by the Free Software Foundation; either 20 * version 2 of the License, or (at your option) any later version. 21 * 22 * This library is distributed in the hope that it will be useful, 23 * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 25 * Lesser General Public License for more details. 26 * 27 * You should have received a copy of the GNU Lesser General Public 28 * License along with this library; if not, write to the 29 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 30 * Boston, MA 02111-1307, USA. 31 */ 32 33 #ifndef WNN_JD_SOCK_H 34 #define WNN_JD_SOCK_H 35 36 /* 37 * jd_sock.h 38 * jslib header file 39 */ 40 41 #include <sys/types.h> 42 #include <sys/socket.h> 43 #ifdef AF_UNIX 44 #include <sys/un.h> 45 #endif /* AF_UNIX */ 46 #include <netinet/in.h> 47 #include <netdb.h> 48 49 #ifdef TAIWANESE 50 #ifndef CHINESE 51 #define CHINESE 52 #endif 53 #endif 54 55 #define ERROR -1 56 57 #ifdef JAPANESE /* Japanese */ 58 # define WNN_PORT_IN (0x5701) 59 static char *sockname = "/tmp/jd_sockV4"; /* for jserver */ 60 # define LANG_NAME "ja_JP" 61 # define SERVERNAME "wnn4" 62 # define MESSAGE_FILE "jserver.msg" 63 #else /* JAPANESE */ 64 65 #ifdef CHINESE 66 #ifdef TAIWANESE /* Traditional Chinese */ 67 # define WNN_PORT_IN (0x5731) 68 static char *sockname = "/tmp/td_sockV4"; /* for tserver */ 69 # define LANG_NAME "zh_TW" 70 # define SERVERNAME "wnn4_Tw" 71 # define MESSAGE_FILE "tserver.msg" 72 #else /* TAIWANESE */ /* Simplified Chinese */ 73 # define WNN_PORT_IN (0x5711) 74 static char *sockname = "/tmp/cd_sockV4"; /* for cserver */ 75 # define LANG_NAME "zh_CN" 76 # define SERVERNAME "wnn4_Cn" 77 # define MESSAGE_FILE "cserver.msg" 78 #endif /* TAIWANESE */ 79 #else /* CHINESE */ 80 81 #ifdef KOREAN /* Korean */ /* not yet */ 82 # define WNN_PORT_IN (0x5721) 83 static char *sockname = "/tmp/kd_sockV4"; /* for kserver */ 84 # define LANG_NAME "ko_KR" 85 # define SERVERNAME "wnn4_Kr" 86 # define MESSAGE_FILE "kserver.msg" 87 #else /* KOREAN */ 88 89 # define WNN_PORT_IN (0x5701) 90 static char *sockname = "/tmp/jd_sockV4"; /* for jserver */ 91 # define LANG_NAME "ja_JP" 92 # define SERVERNAME "wnn4" 93 # define MESSAGE_FILE "jserver.msg" 94 #endif /* KOREAN */ 95 #endif /* CHINESE */ 96 #endif /* JAPANESE */ 97 98 #define S_BUF_SIZ 1024 /* NEVER change this */ 99 #define R_BUF_SIZ 1024 /* NEVER change this */ 100 101 102 #endif /* WNN_JD_SOCK_H */ 103