jabberd2  2.3.2
Functions
pkt.c File Reference

packet abstraction More...

#include "sm.h"

Go to the source code of this file.

Functions

pkt_t pkt_error (pkt_t pkt, int err)
 
pkt_t pkt_tofrom (pkt_t pkt)
 swap a packet's to and from attributes More...
 
pkt_t pkt_dup (pkt_t pkt, const char *to, const char *from)
 duplicate pkt, replacing addresses More...
 
pkt_t pkt_new (sm_t sm, nad_t nad)
 
void pkt_free (pkt_t pkt)
 
pkt_t pkt_create (sm_t sm, const char *elem, const char *type, const char *to, const char *from)
 
void pkt_id (pkt_t src, pkt_t dest)
 convenience - copy the packet id from src to dest More...
 
void pkt_id_new (pkt_t pkt)
 create an id value for new iq packets More...
 
void pkt_router (pkt_t pkt)
 
void pkt_sess (pkt_t pkt, sess_t sess)
 
void pkt_delay (pkt_t pkt, time_t t, const char *from)
 add an x:delay stamp More...
 

Detailed Description

packet abstraction

Author
Robert Norris
Date:
2005/09/09 05:34:13
Revision:
1.35

Definition in file pkt.c.

Function Documentation

pkt_t pkt_error ( pkt_t  pkt,
int  err 
)
pkt_t pkt_tofrom ( pkt_t  pkt)
pkt_t pkt_dup ( pkt_t  pkt,
const char *  to,
const char *  from 
)
pkt_t pkt_new ( sm_t  sm,
nad_t  nad 
)
void pkt_free ( pkt_t  pkt)
pkt_t pkt_create ( sm_t  sm,
const char *  elem,
const char *  type,
const char *  to,
const char *  from 
)
void pkt_id ( pkt_t  src,
pkt_t  dest 
)
void pkt_id_new ( pkt_t  pkt)

create an id value for new iq packets

Definition at line 364 of file pkt.c.

References pkt_st::nad, and nad_set_attr().

Referenced by _disco_pkt_router(), _iq_private_in_sess(), _privacy_in_sess(), _roster_in_sess_s10n(), _roster_pkt_user(), _roster_set_item(), and _roster_update_walker().

void pkt_router ( pkt_t  pkt)
void pkt_sess ( pkt_t  pkt,
sess_t  sess 
)
void pkt_delay ( pkt_t  pkt,
time_t  t,
const char *  from 
)