nta 1.12.11devel
Loading...
Searching...
No Matches
nta_tport.h
Go to the documentation of this file.
1/*
2 * This file is part of the Sofia-SIP package
3 *
4 * Copyright (C) 2005 Nokia Corporation.
5 *
6 * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 *
23 */
24
25#ifndef NTA_TPORT_H
27#define NTA_TPORT_H
28
39#ifndef NTA_H
40#include <sofia-sip/nta.h>
41#endif
42
43SOFIA_BEGIN_DECLS
44
45struct tport_s;
46
47#ifndef TPORT_T
48#define TPORT_T struct tport_s
49typedef TPORT_T tport_t;
50#endif
51
52#ifndef NTA_UPDATE_MAGIC_T
53#define NTA_UPDATE_MAGIC_T void
54#endif
55typedef NTA_UPDATE_MAGIC_T nta_update_magic_t;
56
57struct sigcomp_compartment;
58struct sigcomp_udvm;
59
60#define nta_transport nta_incoming_transport
61
63
66
68
70struct sigcomp_compartment *nta_incoming_compartment(nta_incoming_t *irq);
71
72SOFIAPUBFUN tport_t *nta_outgoing_transport(nta_outgoing_t *orq);
73
75struct sigcomp_compartment *
76nta_outgoing_compartment(nta_outgoing_t *orq);
77
78SOFIAPUBFUN void nta_compartment_decref(struct sigcomp_compartment **);
79
80typedef void nta_update_tport_f(nta_update_magic_t *, nta_agent_t *);
81
84 nta_update_magic_t *magic,
85 nta_update_tport_f *);
86
87SOFIA_END_DECLS
88
89#endif /* !defined NTA_TPORT_H */
Nokia Transaction API for SIP.
struct nta_incoming_s nta_incoming_t
NTA incoming request.
Definition nta.h:61
struct nta_agent_s nta_agent_t
NTA agent.
Definition nta.h:55
struct nta_outgoing_s nta_outgoing_t
NTA outgoing request.
Definition nta.h:59
tport_t * nta_incoming_transport(nta_agent_t *, nta_incoming_t *, msg_t *msg)
Return a new reference to the transaction transport.
Definition nta.c:11654
int nta_agent_tport_is_updating(nta_agent_t *agent)
Check if public transport binding is in progress.
Definition nta.c:11795
int nta_agent_bind_tport_update(nta_agent_t *agent, nta_update_magic_t *magic, nta_update_tport_f *)
Bind transport update callback.
Definition nta.c:11783
tport_t * nta_agent_tports(nta_agent_t *agent)
Return the master transport for the agent.
Definition nta.c:11629
#define SOFIAPUBFUN

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