Loading...
Searching...
No Matches
nta_tport.h
Go to the documentation of this file.
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef NTA_TPORT_H
#define NTA_TPORT_H
#ifndef NTA_H
#include <sofia-sip/nta.h>
#endif
SOFIA_BEGIN_DECLS
struct tport_s;
#ifndef TPORT_T
#define TPORT_T struct tport_s
typedef TPORT_T tport_t;
#endif
#ifndef NTA_UPDATE_MAGIC_T
#define NTA_UPDATE_MAGIC_T void
#endif
typedef NTA_UPDATE_MAGIC_T nta_update_magic_t;
struct sigcomp_compartment;
struct sigcomp_udvm;
#define nta_transport nta_incoming_transport
SOFIAPUBFUN tport_t *nta_agent_tports(nta_agent_t *agent);
SOFIAPUBFUN
tport_t *nta_incoming_transport(nta_agent_t *, nta_incoming_t *, msg_t *msg);
SOFIAPUBFUN int nta_agent_tport_is_updating(nta_agent_t *agent);
SOFIAPUBFUN
struct sigcomp_compartment *nta_incoming_compartment(nta_incoming_t *irq);
SOFIAPUBFUN tport_t *nta_outgoing_transport(nta_outgoing_t *orq);
SOFIAPUBFUN
struct sigcomp_compartment *
nta_outgoing_compartment(nta_outgoing_t *orq);
SOFIAPUBFUN void nta_compartment_decref(struct sigcomp_compartment **);
typedef void nta_update_tport_f(nta_update_magic_t *, nta_agent_t *);
SOFIAPUBFUN
int nta_agent_bind_tport_update(nta_agent_t *agent,
nta_update_magic_t *magic,
nta_update_tport_f *);
SOFIA_END_DECLS
#endif /* !defined NTA_TPORT_H */
msg_t
struct msg_s msg_t
nta.h
Nokia Transaction API for SIP.
nta_incoming_t
struct nta_incoming_s nta_incoming_t
NTA incoming request.
Definition nta.h:61
nta_agent_t
struct nta_agent_s nta_agent_t
NTA agent.
Definition nta.h:55
nta_outgoing_t
struct nta_outgoing_s nta_outgoing_t
NTA outgoing request.
Definition nta.h:59
nta_incoming_transport
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
nta_agent_tport_is_updating
int nta_agent_tport_is_updating(nta_agent_t *agent)
Check if public transport binding is in progress.
Definition nta.c:11795
nta_agent_bind_tport_update
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
nta_agent_tports
tport_t * nta_agent_tports(nta_agent_t *agent)
Return the master transport for the agent.
Definition nta.c:11629
SOFIAPUBFUN
#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.