_PurpleXfer Struct Reference

A core representation of a file transfer. More...

#include <ft.h>


Data Fields

guint ref
 The reference count.
PurpleXferType type
 The type of transfer.
PurpleAccountaccount
 The account.
char * who
 The person on the other end of the transfer.
char * message
 A message sent with the request.
char * filename
 The name sent over the network.
char * local_filename
 The name on the local hard drive.
size_t size
 The size of the file.
FILE * dest_fp
 The destination file pointer.
char * remote_ip
 The remote IP address.
int local_port
 The local port.
int remote_port
 The remote port.
int fd
 The socket file descriptor.
int watcher
 Watcher.
size_t bytes_sent
 The number of bytes sent.
size_t bytes_remaining
 The number of bytes remaining.
time_t start_time
 When the transfer of data began.
time_t end_time
 When the transfer of data ended.
size_t current_buffer_size
 This gradually increases for fast network connections.
PurpleXferStatusType status
 File Transfer's status.
struct {
   void(*   init )(PurpleXfer *xfer)
   void(*   request_denied )(PurpleXfer *xfer)
   void(*   start )(PurpleXfer *xfer)
   void(*   end )(PurpleXfer *xfer)
   void(*   cancel_send )(PurpleXfer *xfer)
   void(*   cancel_recv )(PurpleXfer *xfer)
   gssize(*   read )(guchar **buffer, PurpleXfer *xfer)
   gssize(*   write )(const guchar *buffer, size_t size, PurpleXfer *xfer)
   void(*   ack )(PurpleXfer *xfer, const guchar *buffer, size_t size)
ops
PurpleXferUiOpsui_ops
 UI-specific operations.
void * ui_data
 UI-specific data.
void * data
 prpl-specific data.


Detailed Description

A core representation of a file transfer.

Definition at line 89 of file ft.h.


Field Documentation

The account.

Definition at line 94 of file ft.h.

The number of bytes remaining.

Definition at line 114 of file ft.h.

The number of bytes sent.

Definition at line 113 of file ft.h.

This gradually increases for fast network connections.

Definition at line 118 of file ft.h.

prpl-specific data.

Definition at line 141 of file ft.h.

The destination file pointer.

Definition at line 104 of file ft.h.

When the transfer of data ended.

Definition at line 116 of file ft.h.

The socket file descriptor.

Definition at line 110 of file ft.h.

The name sent over the network.

Definition at line 100 of file ft.h.

The name on the local hard drive.

Definition at line 101 of file ft.h.

The local port.

Definition at line 107 of file ft.h.

The reference count.

Definition at line 91 of file ft.h.

The remote IP address.

Definition at line 106 of file ft.h.

The remote port.

Definition at line 108 of file ft.h.

The size of the file.

Definition at line 102 of file ft.h.

When the transfer of data began.

Definition at line 115 of file ft.h.

File Transfer's status.

Definition at line 121 of file ft.h.

The type of transfer.

Definition at line 92 of file ft.h.

UI-specific data.

Definition at line 139 of file ft.h.

UI-specific operations.

Definition at line 138 of file ft.h.

Watcher.

Definition at line 111 of file ft.h.

The person on the other end of the transfer.

Definition at line 96 of file ft.h.


The documentation for this struct was generated from the following file: