BRL-CAD
ntp.h
Go to the documentation of this file.
1 /* N T P . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2006-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @file libpkg/example/ntp.h
21  *
22  * Example file transfer protocol definition
23  *
24  */
25 
26 #ifndef LIBPKG_EXAMPLE_NTP_H
27 #define LIBPKG_EXAMPLE_NTP_H
28 
29 /* simple network transport protocol. connection starts with a HELO,
30  * then a variable number of GEOM/ARGS messages, then a CIAO to end.
31  */
32 #define MAGIC_ID "TPKG"
33 #define MSG_HELO 1
34 #define MSG_DATA 2
35 #define MSG_CIAO 3
36 
37 /* maximum number of digits on a port number */
38 #define MAX_DIGITS 5
39 
40 #endif /* LIBPKG_EXAMPLE_NTP_H */
41 
42 /*
43  * Local Variables:
44  * mode: C
45  * tab-width: 8
46  * indent-tabs-mode: t
47  * c-file-style: "stroustrup"
48  * End:
49  * ex: shiftwidth=4 tabstop=8
50  */