tport_s Struct Reference

#include <tport_internal.h>

Collaboration diagram for tport_s:

Collaboration graph
[legend]

Detailed Description

Transport object.

A transport object can be used in three roles, to represent transport list (aka master transport), to represent available transports (aka primary transport) and to represent actual transport connections (aka secondary transport).


Data Fields

su_home_t tp_home [1]
 Memory home.
int tp_refs
 Number of references to tport.
unsigned tp_black:1
 Used by red-black-tree.
unsigned tp_accepted:1
 Originally server?
unsigned tp_conn_orient:1
 Is connection-oriented.
unsigned tp_connected: 1
 Has real connection.
unsigned tp_reusable:1
 Can this connection be reused.
unsigned tp_closed: 1
 This transport is closed Remote end has sent FIN (2) or we should not just read.
unsigned tp_send_close:2
 We will send FIN (1) or have sent FIN (2).
tport_t * tp_dad
 Links in tport tree.
tport_master_ttp_master
 Master transport.
tport_primary_ttp_pri
 Primary transport.
tport_params_ttp_params
 Transport parameters.
tp_magic_ttp_magic
 Context provided by consumer.
msg_t const * tp_rlogged
 Last logged when receiving.
msg_t const * tp_slogged
 Last logged when sending.
unsigned tp_time
 When this transport was last used.
tp_name_t tp_name [1]
 Transport name.
su_socket_t tp_socket
 Socket of this tport.
int tp_index
 Root registration index.
int tp_events
 Subscribed events.
su_addrinfo_t tp_addrinfo [1]
 Peer/own address info.
su_sockaddr_t tp_addr [1]
 Peer/own address.
msg_ttp_msg
 Message being received.
tport_pending_t * tp_pending
 Pending requests.
tport_pending_t * tp_released
 Released pends.
unsigned tp_plen
 Size of tp_pending.
unsigned tp_pused
 Used pends.
unsigned short tp_reported
 Report counter.
msg_t ** tp_queue
 Messages being sent.
unsigned short tp_qhead
 Head of queue.
msg_iovec_ttp_unsent
 Pointer to first unsent iovec.
size_t tp_unsentlen
 Number of unsent iovecs.
msg_iovec_ttp_iov
 Iovecs allocated for sending.
size_t tp_iovlen
 Number of allocated iovecs.

Related Functions

(Note that these are not member functions.)

int tport_sigcomp_assign (tport_t *self, struct sigcomp_compartment *cc)
 Assign a SigComp compartment (to a possibly connected tport).


Field Documentation

tp_name_t tp_name[1]

Transport name.

This is either our name (if primary) or peer name (if secondary).


Sofia-SIP 1.12.4 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.