1. Background GNet[1] is a simple network library under GPL. It is written in C, object-oriented, and built upon GLib. It supports abstract Internet addresses, TCP, UDP, IP Multicast, IPv6, asynchronous DNS lookups, SHA, MD5, Base64, URIs, and SOCKS.This project intends to integrate GNet 2.0.8 into the JDS consolidation and will be installed as SUNWgnet. 1.1 Name of Document Author/Supplier: Author: david.fan@sun.com Author: steven.le@sun.com Sponsor: John Fischer 1.2 Date of This Document: 10/14/08 2. Architecture GNet requires GTK GLib 2.0/2.2. It was designed so that most of the implementation is hidden from the developers. Developers should not have to include anynetwork header files other than gnet.h. Gnet features: * TCP "client" and "server" sockets * UDP and IP Multicast sockets * High-level TCP connection and server objects * Asynchronous socket IO * Internet address abstraction * Asynchronous DNS lookup * IPv4 and IPv6 support * Byte packing and unpacking * URI parsing * SHA and MD5 hashes * Base64 encoding and decoding * SOCKS support * High-level HTTP connection object 3. Dependencies glib 2.10.1 LSARC/2006/202 4. Interfaces Interface Name Classification Comments --------------------------- ------------------- ----------------- SUNWgnet Volatile Package name /usr/lib/libgnet-2.0.so.0.8.0 Volatile version 2.0.8 /usr/lib/libgnet-2.0.so Volatile symlink /usr/lib/libgnet-2.0.so.0 Volatile symlink /usr/include/gnet-2.0 Volatile directory /usr/include/gnet-2.0/gnet.h Volatile header file /usr/include/gnet-2.0/base64.h Volatile header file /usr/include/gnet-2.0/conn-http.h Volatile header file /usr/include/gnet-2.0/conn.h Volatile header file /usr/include/gnet-2.0/inetaddr.h Volatile header file /usr/include/gnet-2.0/iochannel.h Volatile header file /usr/include/gnet-2.0/ipv6.h Volatile header file /usr/include/gnet-2.0/mcast.h Volatile header file /usr/include/gnet-2.0/md5.h Volatile header file /usr/include/gnet-2.0/pack.h Volatile header file /usr/include/gnet-2.0/server.h Volatile header file /usr/include/gnet-2.0/sha.h Volatile header file /usr/include/gnet-2.0/socks.h Volatile header file /usr/include/gnet-2.0/tcp.h Volatile header file /usr/include/gnet-2.0/udp.h Volatile header file /usr/include/gnet-2.0/tcp.h Volatile header file /usr/include/gnet-2.0/uri.h Volatile header file Imported Interfaces ------------------- /usr/lib/glib-2.0 Uncommitted LSARC/2006/202 5. Man pages /usr/share/man/gnet.3 6. References [1] Gnet homepage: http://www.gnetlibrary.org