nta 1.13.17
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
57#ifndef NTA_ERROR_MAGIC_T
58#define NTA_ERROR_MAGIC_T void
59#endif
60typedef NTA_ERROR_MAGIC_T nta_error_magic_t;
61
62struct sigcomp_compartment;
63struct sigcomp_udvm;
64
65#define nta_transport nta_incoming_transport
66
68
71
73struct sigcomp_compartment *nta_incoming_compartment(nta_incoming_t *irq);
74
75SOFIAPUBFUN tport_t *nta_outgoing_transport(nta_outgoing_t *orq);
76
78struct sigcomp_compartment *
79nta_outgoing_compartment(nta_outgoing_t *orq);
80
81SOFIAPUBFUN void nta_compartment_decref(struct sigcomp_compartment **);
82
83typedef void nta_update_tport_f(nta_update_magic_t *, nta_agent_t *);
84
85typedef void nta_error_tport_f(nta_error_magic_t *, nta_agent_t *, tport_t *);
86
89 nta_update_magic_t *magic,
90 nta_update_tport_f *);
91
94 nta_error_magic_t *magic,
95 nta_error_tport_f *callback);
96
97SOFIA_END_DECLS
98
99#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:11929
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:12058
int nta_agent_bind_tport_error(nta_agent_t *agent, nta_error_magic_t *magic, nta_error_tport_f *callback)
Bind transport error callback.
Definition nta.c:12070
tport_t * nta_agent_tports(nta_agent_t *agent)
Return the master transport for the agent.
Definition nta.c:11904
#define SOFIAPUBFUN

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