msrp_netio.h

00001 
00025 #ifndef _MSRP_NETIO_H_
00026 #define _MSRP_NETIO_H_
00027 
00028 #include "../../dns_cache.h"
00029 
00030 #include "msrp_parser.h"
00031 
00032 int msrp_forward_frame(msrp_frame_t *mf, int flags);
00033 int msrp_send_buffer(str *buf, str *addr, int flags);
00034 
00035 int msrp_relay(msrp_frame_t *mf);
00036 int msrp_reply(msrp_frame_t *mf, str *code, str *text, str *xhdrs);
00037 
00038 struct dest_info *msrp_uri_to_dstinfo(struct dns_srv_handle* dns_h,
00039                 struct dest_info* dst, struct socket_info *force_send_socket,
00040                 snd_flags_t sflags, str *uri);
00041 struct socket_info *msrp_get_local_socket(str *sockaddr);
00042 
00043 #endif