Gearman Developer Documentation

Connection Declarations
[Static Gearman Declarations]

Data Structures

struct  gearman_connection_st

Enumerations

enum  gearman_connection_options_t {
  GEARMAN_CON_READY, GEARMAN_CON_PACKET_IN_USE, GEARMAN_CON_EXTERNAL_FD, GEARMAN_CON_IGNORE_LOST_CONNECTION,
  GEARMAN_CON_CLOSE_AFTER_FLUSH, GEARMAN_CON_MAX
}
enum  { gearman_connection_st::GEARMAN_CON_UNIVERSAL_ADDRINFO, gearman_connection_st::GEARMAN_CON_UNIVERSAL_CONNECT, gearman_connection_st::GEARMAN_CON_UNIVERSAL_CONNECTING, gearman_connection_st::GEARMAN_CON_UNIVERSAL_CONNECTED }
enum  {
  gearman_connection_st::GEARMAN_CON_SEND_STATE_NONE, gearman_connection_st::GEARMAN_CON_SEND_UNIVERSAL_PRE_FLUSH, gearman_connection_st::GEARMAN_CON_SEND_UNIVERSAL_FORCE_FLUSH, gearman_connection_st::GEARMAN_CON_SEND_UNIVERSAL_FLUSH,
  gearman_connection_st::GEARMAN_CON_SEND_UNIVERSAL_FLUSH_DATA
}
enum  { gearman_connection_st::GEARMAN_CON_RECV_UNIVERSAL_NONE, gearman_connection_st::GEARMAN_CON_RECV_UNIVERSAL_READ, gearman_connection_st::GEARMAN_CON_RECV_STATE_READ_DATA }

Variables

bool ready   gearman_connection_st::LIBGEARMAN_BITFIELD
bool packet_in_use   gearman_connection_st::LIBGEARMAN_BITFIELD
bool external_fd   gearman_connection_st::LIBGEARMAN_BITFIELD
bool ignore_lost_connection   gearman_connection_st::LIBGEARMAN_BITFIELD
bool close_after_flush   gearman_connection_st::LIBGEARMAN_BITFIELD
enum gearman_connection_st:: { ... }  gearman_connection_st::state
enum gearman_connection_st:: { ... }  gearman_connection_st::send_state
enum gearman_connection_st:: { ... }  gearman_connection_st::recv_state
in_port_t gearman_connection_st::port
short gearman_connection_st::events
short gearman_connection_st::revents
int gearman_connection_st::fd
uint32_t gearman_connection_st::created_id
uint32_t gearman_connection_st::created_id_next
size_t gearman_connection_st::send_buffer_size
size_t gearman_connection_st::send_data_size
size_t gearman_connection_st::send_data_offset
size_t gearman_connection_st::recv_buffer_size
size_t gearman_connection_st::recv_data_size
size_t gearman_connection_st::recv_data_offset
gearman_universal_stgearman_connection_st::universal
gearman_connection_stgearman_connection_st::next
gearman_connection_stgearman_connection_st::prev
void * gearman_connection_st::context
struct addrinfo * gearman_connection_st::addrinfo
struct addrinfo * gearman_connection_st::addrinfo_next
char * gearman_connection_st::send_buffer_ptr
gearman_packet_stgearman_connection_st::recv_packet
char * gearman_connection_st::recv_buffer_ptr
void * gearman_connection_st::protocol_context
gearman_connection_protocol_context_free_fngearman_connection_st::protocol_context_free_fn
gearman_packet_pack_fngearman_connection_st::packet_pack_fn
gearman_packet_unpack_fngearman_connection_st::packet_unpack_fn
gearman_packet_st gearman_connection_st::packet
char gearman_connection_st::host [NI_MAXHOST]
char gearman_connection_st::send_buffer [GEARMAN_SEND_BUFFER_SIZE]
char gearman_connection_st::recv_buffer [GEARMAN_RECV_BUFFER_SIZE]

Detailed Description

This is a low level interface for gearman connections. This is used internally by both client and worker interfaces, so you probably want to look there first. This is usually used to write lower level clients, workers, proxies, or your own server.


Enumeration Type Documentation

Options for gearman_connection_st.

Enumerator:
GEARMAN_CON_READY 
GEARMAN_CON_PACKET_IN_USE 
GEARMAN_CON_EXTERNAL_FD 
GEARMAN_CON_IGNORE_LOST_CONNECTION 
GEARMAN_CON_CLOSE_AFTER_FLUSH 
GEARMAN_CON_MAX 

Definition at line 134 of file constants.h.

anonymous enum [inherited]
Enumerator:
GEARMAN_CON_UNIVERSAL_ADDRINFO 
GEARMAN_CON_UNIVERSAL_CONNECT 
GEARMAN_CON_UNIVERSAL_CONNECTING 
GEARMAN_CON_UNIVERSAL_CONNECTED 

Definition at line 46 of file connection.h.

anonymous enum [inherited]
Enumerator:
GEARMAN_CON_SEND_STATE_NONE 
GEARMAN_CON_SEND_UNIVERSAL_PRE_FLUSH 
GEARMAN_CON_SEND_UNIVERSAL_FORCE_FLUSH 
GEARMAN_CON_SEND_UNIVERSAL_FLUSH 
GEARMAN_CON_SEND_UNIVERSAL_FLUSH_DATA 

Definition at line 52 of file connection.h.

anonymous enum [inherited]
Enumerator:
GEARMAN_CON_RECV_UNIVERSAL_NONE 
GEARMAN_CON_RECV_UNIVERSAL_READ 
GEARMAN_CON_RECV_STATE_READ_DATA 

Definition at line 59 of file connection.h.


Variable Documentation

Definition at line 40 of file connection.h.

bool { ... } ::LIBGEARMAN_BITFIELD [inherited]

Definition at line 40 of file connection.h.

bool packet_in_use gearman_connection_st::LIBGEARMAN_BITFIELD [inherited]

Definition at line 41 of file connection.h.

bool { ... } ::LIBGEARMAN_BITFIELD [inherited]

Definition at line 41 of file connection.h.

bool external_fd gearman_connection_st::LIBGEARMAN_BITFIELD [inherited]

Definition at line 42 of file connection.h.

bool { ... } ::LIBGEARMAN_BITFIELD [inherited]

Definition at line 42 of file connection.h.

bool ignore_lost_connection gearman_connection_st::LIBGEARMAN_BITFIELD [inherited]

Definition at line 43 of file connection.h.

bool { ... } ::LIBGEARMAN_BITFIELD [inherited]

Definition at line 43 of file connection.h.

bool close_after_flush gearman_connection_st::LIBGEARMAN_BITFIELD [inherited]

Definition at line 44 of file connection.h.

bool { ... } ::LIBGEARMAN_BITFIELD [inherited]

Definition at line 44 of file connection.h.

enum { ... } gearman_connection_st::state [inherited]
enum { ... } gearman_connection_st::send_state [inherited]
enum { ... } gearman_connection_st::recv_state [inherited]
in_port_t gearman_connection_st::port [inherited]

Definition at line 64 of file connection.h.

short gearman_connection_st::events [inherited]

Definition at line 65 of file connection.h.

short gearman_connection_st::revents [inherited]

Definition at line 66 of file connection.h.

int gearman_connection_st::fd [inherited]

Definition at line 67 of file connection.h.

uint32_t gearman_connection_st::created_id [inherited]

Definition at line 68 of file connection.h.

Definition at line 69 of file connection.h.

Definition at line 70 of file connection.h.

Definition at line 71 of file connection.h.

Definition at line 72 of file connection.h.

Definition at line 73 of file connection.h.

Definition at line 74 of file connection.h.

Definition at line 75 of file connection.h.

Definition at line 76 of file connection.h.

Definition at line 77 of file connection.h.

Definition at line 78 of file connection.h.

void* gearman_connection_st::context [inherited]

Definition at line 79 of file connection.h.

struct addrinfo* gearman_connection_st::addrinfo [inherited]

Definition at line 80 of file connection.h.

struct addrinfo* gearman_connection_st::addrinfo_next [inherited]

Definition at line 81 of file connection.h.

Definition at line 82 of file connection.h.

Definition at line 83 of file connection.h.

Definition at line 84 of file connection.h.

Definition at line 85 of file connection.h.

Definition at line 86 of file connection.h.

Definition at line 87 of file connection.h.

Definition at line 88 of file connection.h.

Definition at line 89 of file connection.h.

char gearman_connection_st::host[NI_MAXHOST] [inherited]

Definition at line 90 of file connection.h.

char gearman_connection_st::send_buffer[GEARMAN_SEND_BUFFER_SIZE] [inherited]

Definition at line 91 of file connection.h.

char gearman_connection_st::recv_buffer[GEARMAN_RECV_BUFFER_SIZE] [inherited]

Definition at line 92 of file connection.h.

Generated on Mon Jun 14 15:58:45 2010 by  doxygen 1.6.3