OSDN Git Service

Fix conditions of sending commands for keep alive.
[ffftp/ffftp.git] / sample.h
1 /*=============================================================================\r
2 *                                                       FFFTP共通定義ファイル\r
3 *\r
4 ===============================================================================\r
5 / Copyright (C) 1997-2007 Sota. All rights reserved.\r
6 /\r
7 / Redistribution and use in source and binary forms, with or without \r
8 / modification, are permitted provided that the following conditions \r
9 / are met:\r
10 /\r
11 /  1. Redistributions of source code must retain the above copyright \r
12 /     notice, this list of conditions and the following disclaimer.\r
13 /  2. Redistributions in binary form must reproduce the above copyright \r
14 /     notice, this list of conditions and the following disclaimer in the \r
15 /     documentation and/or other materials provided with the distribution.\r
16 /\r
17 / THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR \r
18 / IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES \r
19 / OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \r
20 / IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, \r
21 / INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
22 / BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF \r
23 / USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON \r
24 / ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \r
25 / (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF \r
26 / THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
27 /============================================================================*/\r
28 \r
29 /* サンプルホスト定義ファイル */\r
30 \r
31 typedef struct {\r
32         int Level;                                                      /* 設定のレベル */\r
33         char HostName[HOST_NAME_LEN+1];         /* 設定名 */\r
34         char HostAdrs[HOST_ADRS_LEN+1];         /* ホスト名 */\r
35 } SAMPLEHOSTDATA;\r
36 \r
37 \r
38 #define SAMPLE_HOSTS    9\r
39 \r
40 \r
41 static const SAMPLEHOSTDATA Sample[SAMPLE_HOSTS] = {\r
42         { 32768,"anonymous FTP site",                           "" },\r
43         { 1,    "Vector",                                       "ftp.vector.co.jp" },\r
44         { 1,    "窓の杜(Forest)",                    "ftp.forest.impress.co.jp" },\r
45         { 1,    "Ring server",                          "ftp.ring.gr.jp" },\r
46         { 1,    "BIGLOBE",                                      "ftp.biglobe.ne.jp" },\r
47         { 1,    "IIJ",                                          "ftp.iij.ad.jp" },\r
48         { 1,    "SUNSITE",                                      "sunsite.sut.ac.jp" },\r
49         { 1,    "WIN Internet Service",         "ftp.win.ne.jp" },\r
50         { 1,    "Microsoft",                            "ftp.microsoft.com" }\r
51 };\r
52 \r
53 \r
54 \r
55 \r