• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

doc/H03-May-2022-13,96910,830

examples/H03-May-2022-5,0943,627

macros/H03-May-2022-522458

src/H03-May-2022-19,07910,717

tests/H03-May-2022-7,0175,170

AUTHORSH A D03-Feb-20081.1 KiB3025

BUGSH A D03-Feb-20081.4 KiB3625

COPYINGH A D03-Feb-200819.7 KiB391321

ChangeLogH A D03-Feb-2008135.2 KiB4,1322,927

GNET.DSPH A D03-Feb-20086 KiB252201

HACKINGH A D03-Feb-20085.5 KiB181127

INSTALLH A D03-Feb-20089 KiB227174

Makefile.amH A D03-Feb-20082.2 KiB8057

Makefile.inH A D03-May-202227 KiB839748

NEWSH A D03-Feb-20088.9 KiB339286

READMEH A D03-Feb-20084.5 KiB169120

README.macosxH A D03-Feb-2008332 149

README.win32H A D03-Feb-20082.5 KiB5947

TODOH A D03-Feb-20083.1 KiB9865

acinclude.m4H A D03-Feb-20085.5 KiB165149

aclocal.m4H A D03-Feb-2008262.4 KiB7,4986,732

config.guessH A D27-Apr-200743.5 KiB1,5171,305

config.h.inH A D03-Feb-20085 KiB210140

config.h.win32H A D03-Feb-200874 74

config.subH A D27-Apr-200731.9 KiB1,6231,479

configureH A D03-May-2022835.9 KiB27,27221,950

configure.acH A D03-Feb-200818.2 KiB629531

depcompH A D06-Dec-200615.6 KiB531330

gnet-2.0.m4H A D03-Feb-20087.4 KiB189175

gnet-2.0.pc.inH A D03-Feb-2008428 119

gnet.defH A D03-Feb-20085.1 KiB220219

gnet.specH A D03-Feb-20083.1 KiB12296

gnet.spec.inH A D03-Feb-20083.2 KiB12297

gnetconfig.h.inH A D03-Feb-2008356 139

install-shH A D06-Dec-20069 KiB324189

ltmain.shH A D14-Aug-2007194.6 KiB6,9395,483

missingH A D06-Dec-200610.8 KiB361268

README

1
2GNet README
3-----------
4
5GNet is a simple network library.  It is written in C,
6object-oriented, and built upon GLib.  It is intended to be easy to
7use and port.  GNet comes with documentation and examples.  It is
8licensed under the GNU Library General Public Licence.
9
10Features:
11  * TCP "client" and "server" sockets
12  * UDP and IP Multicast sockets
13  * High-level TCP connection and server objects
14  * Asynchronous socket IO
15  * Internet address abstraction
16  * Asynchronous DNS lookup
17  * IPv4 and IPv6 support
18  * Byte packing and unpacking
19  * URI parsing
20  * SHA and MD5 hashes
21  * Base64 encoding and decoding
22  * SOCKS support
23  * High-level HTTP connection object
24
25GNet has been ported to Linux, *BSD, MacOSX, Solaris, HP, MacOS X, and
26Windows.  It may work on other operating systems also.
27
28GNet requires GLib 2.x, available at www.gtk.org.  Or, if
29you have a system with packages (e.g., Red Hat or Debian), look for
30the latest glib package (glib2-devel or libglib2.0-dev usually).
31
32Comments and questions should be sent to gnet@gnetlibrary.org.
33
34The GNet homepage is at <http://www.gnetlibrary.org>.
35
36
37Install
38=======
39
40In a nutshell:
41  > ./configure
42  > make
43  > make install
44
45If gethostbyname() and gethostbyaddr() are thread-safe, pass the
46--enable-threadsafe-gethostbyname() to configure.  (If it is and you
47don't do this, it will still function correctly.)
48
49Similarly, if getaddrinfo() and getnameinfo() are thread-safe, pass
50the --enable-threadsafe-getaddrinfo() to configure
51
52The flag --with-html-dir=DIR controls the directory the HTML
53documentation goes into.  By default it will go into
54DATADIR/doc/libgnet-X.Y, which DATADIR is /usr/local/share on most
55Unix machines.  Use this flag if you want it to go somewhere else.
56
57
58INSTALL is the standard autoconf INSTALL file.
59
60
61Bugs
62====
63
64Bug reports should be submitted through <http://bugzilla.gnome.org>.
65Our bug page is:
66   <http://bugzilla.gnome.org/buglist.cgi?product=gnet>
67
68See BUGS for known bugs.
69
70
71Mailing lists
72=============
73
74Go to <http://www.gnetlibrary.org/mailman/listinfo/> to join the
75mailing lists and view the archives.
76
77Name			Purpose
78gnet-announce		Announcements about GNet
79gnet-discuss		Discussion of GNet for users and programmers
80gnet-dev		Discussion of GNet for the developers of GNet
81
82
83
84Developer info
85==============
86
87API documentation lives on the GNet homepage (specifically, at
88<http://www.gnetlibrary.org/docs>)
89
90NOTE ON EXPERIMENTAL FEATURES.  The URL, Server, and Conn modules are
91experimental and part of the IOChannel module is also experimental.
92The GNet development team believes these modules are useful and
93usable, but are not yet completely confident in them.  The API to
94these modules may change and there may still be bugs in them.  For
95example, the URL module is incomplete and the new IOChannel functions
96should be audited again.  If you are feeling adventurous and want to
97use these functions, define GNET_EXPERIMENTAL.  Otherwise, your
98compiler should warn or fail if they are used.  We welcome bug fixes,
99improvements, and comments on the experimental modules.  Our hope is
100that adventurous programmers will use these modules and help in their
101further development.
102
103The Nylon SOCKS server is required for SOCKS server socket support.
104SOCKS server sockets are weird.  Marius, a Nylon and GNet developer,
105changed the semantics in Nylon to make SOCKS integration in GNet
106easier/possible.  GNet SOCKS clients should work with any SOCKS
107server.  The Nylon homepage is
108<http://mesh.eecs.umich.edu/projects/nylon/>.
109
110
111Hacking
112=======
113
114If you are interested in contributing to GNet, please see 'HACKING'.
115This includes information on how to get GNet from the repository and
116how to submit patches.
117
118
119License
120=======
121
122Read COPYING for information on the license.  GNet is under the GNU
123Lesser General Public License.
124
125
126Applications that use GNet
127==========================
128
129eDonkey2000 GTK frontend
130  eDonkey2000 (DFS) frontend
131  http://ed2k-gtk-gui.sourceforge.net
132
133Gnome Chinese Checkers
134  board game
135  http://gchch.sourceforge.net/
136
137Gnome Jabber
138  instant messaging and chat
139  http://gnome-jabber.sourceforge.net
140
141Jungle Monkey
142  distributed file sharing program
143  http://www.junglemonkey.net
144
145Mail Notify
146  mail notification applet
147  http://www.nongnu.org/mailnotify/
148
149MSI
150  multi-simulation interface
151  http://msi.sourceforge.net>
152
153PAN
154  Gnome newsreader
155  http://pan.rebelbase.com
156
157PreViking
158  telephony middleware
159  http://www.bellworldwide.net/previking/
160
161Sussen
162  network scanner
163  http://sussen.sourceforge.net/
164
165Workrave
166  rest break reminder
167  http://www.workrave.org/
168
169

README.macosx

1
2To compile GNet on MacOS X (and NeXT, OpenStep and other similar OS's)
3you need to disable smart preprocessing.  To do this, instead of just
4running configure run:
5
6csh/tcsh:
7  % setenv CFLAGS -traditional-cpp
8  % ./configure
9
10sh/bash:
11  % CFLAGS=-traditional-cpp ./configure
12
13(This may not be required in 10.1 and later version.)
14

README.win32

1GNet README for Windows
2-----------------------
3
4This document contains:
5 - General Windows Specific Information
6 - Compiling GNet on Windows
7
8General Windows Specific Information
9----------------------------------
10
11GNet 2.0 on Windows requires at least glib-2.2.3.
12See: http://www.gimp.org/~tml/gimp/win32/downloads.html
13
14For IPv6 support you need at least Windows XP SP1 or Windows 2003
15(and both with the IPv6 stacks installed). GNet will automatically
16detect at runtime, not compile time, if IPv6 is supported and set the
17"IPv6 policy". Note that if IPv6 is installed, GNet will default to
18use IPv6. Since Windows is a �dual stack� operating system this may
19lead to your IPv4 only application to fail if the IPv6 stack is
20installed since the bind() default is IPv6. You should explicitly
21set the GNet "IPv6 policy� with
22gnet_ipv6_set_policy(GIPV6_POLICY_IPV4_ONLY); after gnet_init();
23if your application is IPv4 only.
24
25I used Windows 2000 SP4 and Windows XP SP1 to test GNet 2.0.
26I used Windows 98 and Windows NT 4 SP6a to test prior versions
27of GNet however these versions of Windows have reached �end-of-life�
28according to Microsoft. Theoretically all that is required is
29Windows 95 (with the Winsock2 patch) or better, or Windows NT
30(with Service Pack 4) or better.
31
32On Windows if you do not have IPv6 installed then
33gnet_inetaddr_list_interfaces() will return up to 10 interfaces.
34
35Reminder that on windows, text files have extra "\r" in them where as
36on UNIX they do not. This will throw off SHA & MD5 if you do not filter
37the extra characters out before calling those functions.
38
39Compiling GNet on Windows
40-------------------------
41
42Microsoft Visual C++ .NET 2002, 2003 and Mingw/GCC should compile
43GNet 2.0 without any issues. The few warnings that appear can be
44ignored. Microsoft Visual C++ 6.0 users will have to upgrade to
45the latest Platform SDK. (Note that GNet is written in C, not C++.)
46
47A mingw/gcc makefile is provided. Microsoft Visual C++ users
48should look at and base their projects off this gcc makefile. A
49.dsp file may be in this distribution but it is likely out of date.
50
51You should compile GNet 2.0 on Windows with the -mno-cygwin,
52-mms-bitfields and -DGNET_EXPERIMENTAL=1 options for gcc and
53define GNET_EXPERIMENTAL when compiling with Microsoft Visual C++.
54Note that the �Experimental� code such as the Conn API has now
55stabilized on Windows.
56
57Also note that -mno-cygwin means do not link to the cygwin
58dll, link to MSVCRT when using cygwin tools. Linking to cygwin
59is not supported.