msg.c File Reference


Detailed Description

Message object implementation.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Thu Jun 8 19:28:55 2000 ppessi

#include "config.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <limits.h>
#include <errno.h>
#include <assert.h>
#include <sofia-sip/su_alloc.h>
#include <sofia-sip/su.h>
#include "msg_internal.h"
#include "sofia-sip/msg_parser.h"
#include "sofia-sip/msg_mclass.h"

Include dependency graph for msg.c:


Functions

msg_pub_tmsg_object (msg_t const *msg)
 Retrieve public message structure.
void msg_addr_zero (msg_t *msg)
 Zero the message address.
socklen_t * msg_addrlen (msg_t *msg)
 Get pointer to address length.
su_sockaddr_t * msg_addr (msg_t *msg)
 Get pointer to socket address structure.
int msg_get_address (msg_t *msg, su_sockaddr_t *su, socklen_t *return_len)
 Get message address.
int msg_set_address (msg_t *msg, su_sockaddr_t const *su, socklen_t sulen)
 Set message address.
su_addrinfo_t * msg_addrinfo (msg_t *msg)
 Get addrinfo structure.
void msg_addr_copy (msg_t *dst, msg_t const *src)
 Copy message address.
unsigned msg_extract_errors (msg_t const *msg)
 Get error classification flags.
int msg_errno (msg_t const *msg)
 Get error number associated with message.
void msg_set_errno (msg_t *msg, int err)
 Set error number associated with message.

Function Documentation

su_sockaddr_t* msg_addr ( msg_t msg  ) 

Get pointer to socket address structure.

Deprecated:
Use msg_get_address() or msg_set_address() instead.

socklen_t* msg_addrlen ( msg_t msg  ) 

Get pointer to address length.

Deprecated:
Use msg_get_address() or msg_set_address() instead.

msg_pub_t* msg_object ( msg_t const *  msg  ) 

Retrieve public message structure.

This function returns a pointer to the public message structure.

Parameters:
msg pointer to msg object
Returns:
A pointer to the public message structure, or NULL if none.


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