|
Data Structures |
struct | tsync |
| Records the time at which we sent a "Time Sync" to remote peers, along with the event that will expire those entries. More...
|
Defines |
#define | TSYNC_EXPIRE_MS (60*1000) /**< Expiration time: 60 secs */ |
| Expiration time: 60 secs.
|
Enumerations |
enum | tsync_magic_t { TSYNC_MAGIC = 0x781f372f
} |
Functions |
| RCSID ("$Id:tsync.c, v 1.17 2005/09/10 08:17:29 daichik Exp $") |
void | tsync_free (struct tsync *ts) |
| Free a tsync structure.
|
void | tsync_expire (cqueue_t *unused_cq, gpointer obj) |
| Expire the tsync record.
|
void | tsync_send (struct gnutella_node *n, guint32 node_id) |
| Send time synchronization request to specified node.
|
void | tsync_send_timestamp (tm_t *orig, tm_t *final) |
| Called when final "T1" timestamp was written to the request, which superseded the original timestamp we had.
|
void | tsync_got_request (struct gnutella_node *n, tm_t *got) |
| Got time request, answer it.
|
void | tsync_got_reply (struct gnutella_node *n, tm_t *sent, tm_t *received, tm_t *replied, tm_t *got, gboolean ntp) |
| Got a reply to our initial "Time Sync" request.
|
void | tsync_init (void) |
| Initializes the time synchronization.
|
void | free_tsync_kv (gpointer unused_key, gpointer value, gpointer unused_udata) |
| Get rid of the tsync structure held in the value.
|
void | tsync_close (void) |
| Cleanup at shutdown time.
|
Variables |
GHashTable * | tsync_by_time = NULL |
| tm_t -> tsync
|