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

uploads.h File Reference

#include "common.h"
#include "lib/host_addr.h"

Go to the source code of this file.

Data Structures

struct  gnet_upload_status
struct  gnet_upload_info
struct  ul_stats

Defines

#define UPLOAD_IS_CONNECTING(u)
#define UPLOAD_IS_COMPLETE(u)   ((u)->status == GTA_UL_COMPLETE)
#define UPLOAD_IS_SENDING(u)   ((u)->status == GTA_UL_SENDING)
#define upload_add_listener(signal, callback)   CAT3(upload_add_,signal,_listener)(callback);
#define upload_remove_listener(signal, callback)   CAT3(upload_remove_,signal,_listener)(callback);

Typedefs

typedef guint32 gnet_upload_t
typedef gnet_upload_status gnet_upload_status_t
typedef gnet_upload_info gnet_upload_info_t
typedef void(* upload_added_listener_t )(gnet_upload_t, guint32, guint32)
typedef void(* upload_removed_listener_t )(gnet_upload_t, const gchar *, guint32, guint32)
typedef void(* upload_info_changed_listener_t )(gnet_upload_t, guint32, guint32)

Enumerations

enum  upload_stage_t {
  GTA_UL_PUSH_RECEIVED = 1, GTA_UL_COMPLETE = 2, GTA_UL_SENDING = 3, GTA_UL_HEADERS = 4,
  GTA_UL_WAITING = 5, GTA_UL_ABORTED = 6, GTA_UL_CLOSED = 7, GTA_UL_QUEUED = 8,
  GTA_UL_QUEUE = 9, GTA_UL_QUEUE_WAITING = 10, GTA_UL_PFSP_WAITING = 11
}
 Upload states. More...


Define Documentation

#define upload_add_listener signal,
callback   )     CAT3(upload_add_,signal,_listener)(callback);
 

#define UPLOAD_IS_COMPLETE u   )     ((u)->status == GTA_UL_COMPLETE)
 

#define UPLOAD_IS_CONNECTING u   ) 
 

Value:

(   (u)->status == GTA_UL_HEADERS               \
    ||  (u)->status == GTA_UL_PUSH_RECEIVED         \
    ||  (u)->status == GTA_UL_QUEUE                 \
    ||  (u)->status == GTA_UL_QUEUE_WAITING         \
    ||  (u)->status == GTA_UL_PFSP_WAITING          \
    ||  (u)->status == GTA_UL_WAITING   )

#define UPLOAD_IS_SENDING u   )     ((u)->status == GTA_UL_SENDING)
 

#define upload_remove_listener signal,
callback   )     CAT3(upload_remove_,signal,_listener)(callback);
 


Typedef Documentation

typedef struct gnet_upload_info gnet_upload_info_t
 

typedef struct gnet_upload_status gnet_upload_status_t
 

typedef guint32 gnet_upload_t
 

typedef void(* upload_added_listener_t)( gnet_upload_t, guint32, guint32)
 

typedef void(* upload_info_changed_listener_t)( gnet_upload_t, guint32, guint32)
 

typedef void(* upload_removed_listener_t)( gnet_upload_t, const gchar *, guint32, guint32)
 


Enumeration Type Documentation

enum upload_stage_t
 

Upload states.

Enumeration values:
GTA_UL_PUSH_RECEIVED  We got a push request.
GTA_UL_COMPLETE  The file has been sent completely.
GTA_UL_SENDING  We are sending data.
GTA_UL_HEADERS  Receiving the HTTP request headers.
GTA_UL_WAITING  Waiting new HTTP request.
GTA_UL_ABORTED  Upload removed during operation.
GTA_UL_CLOSED  Upload removed while waiting.
GTA_UL_QUEUED  Upload is queued.
GTA_UL_QUEUE  Send a queue (Similar to push).
GTA_UL_QUEUE_WAITING  Connect back with GTA_UL_QUEUE was success now waiting for a response.
GTA_UL_PFSP_WAITING  Requested range unavailable, retry..


Generated on Sun Feb 12 10:50:09 2006 for Gtk-Gnutella by doxygen 1.3.6