Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gnutella_socket Struct Reference

#include <sockets.h>


Data Fields

gint file_desc
 file descriptor

guint32 flags
 operating flags

guint gdk_tag
 gdk tag

enum socket_direction direction
enum socket_type type
enum net_type net
gboolean corked
gboolean was_shutdown
 Set if shutdown() was used.

gint adns
 status of ADNS resolution

gchar * adns_msg
 ADNS error message.

host_addr_t addr
 IP of our partner.

guint16 port
 Port of our partner.

guint16 local_port
 Port on our side.

time_t last_update
 Timestamp of last activity on socket.

wrap_io wio
 Wrapped IO object.

union {
   gnutella_node *   node
   download *   download
   upload *   upload
   pproxy *   pproxy
   cproxy *   cproxy
   gpointer   handle
resource
getlinegetline
 Line reader object.

gchar buffer [SOCK_BUFSZ]
 buffer to put in the data read

size_t pos
 write position in the buffer


Field Documentation

host_addr_t gnutella_socket::addr
 

IP of our partner.

gint gnutella_socket::adns
 

status of ADNS resolution

gchar* gnutella_socket::adns_msg
 

ADNS error message.

gchar gnutella_socket::buffer[SOCK_BUFSZ]
 

buffer to put in the data read

gboolean gnutella_socket::corked
 

struct cproxy* gnutella_socket::cproxy
 

enum socket_direction gnutella_socket::direction
 

struct download* gnutella_socket::download
 

gint gnutella_socket::file_desc
 

file descriptor

guint32 gnutella_socket::flags
 

operating flags

guint gnutella_socket::gdk_tag
 

gdk tag

struct getline* gnutella_socket::getline
 

Line reader object.

gpointer gnutella_socket::handle
 

time_t gnutella_socket::last_update
 

Timestamp of last activity on socket.

guint16 gnutella_socket::local_port
 

Port on our side.

enum net_type gnutella_socket::net
 

struct gnutella_node* gnutella_socket::node
 

guint16 gnutella_socket::port
 

Port of our partner.

size_t gnutella_socket::pos
 

write position in the buffer

struct pproxy* gnutella_socket::pproxy
 

union { ... } gnutella_socket::resource
 

enum socket_type gnutella_socket::type
 

struct upload* gnutella_socket::upload
 

gboolean gnutella_socket::was_shutdown
 

Set if shutdown() was used.

struct wrap_io gnutella_socket::wio
 

Wrapped IO object.


The documentation for this struct was generated from the following file:
Generated on Sun Feb 12 10:50:12 2006 for Gtk-Gnutella by doxygen 1.3.6