e60a9728 |
/*
|
53c7e0f1 |
* Copyright (C) 2001-2003 FhG Fokus
|
7dd0b342 |
*
|
6806e46a |
* This file is part of Kamailio, a free SIP server.
|
7dd0b342 |
*
|
6806e46a |
* Kamailio is free software; you can redistribute it and/or modify
|
7dd0b342 |
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version
*
|
6806e46a |
* For a license to use the Kamailio software under conditions
|
7dd0b342 |
* other than those described here, or to purchase support for this
* software, please contact iptel.org by e-mail at the following addresses:
* info@iptel.org
*
|
6806e46a |
* Kamailio is distributed in the hope that it will be useful,
|
7dd0b342 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
|
9e1ff448 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
e60a9728 |
*/
|
7dd0b342 |
|
e60a9728 |
#ifndef udp_server_h
#define udp_server_h
|
a46cdb8c |
#include <sys/types.h>
#include <sys/socket.h>
|
4e2fdd79 |
#include "ip_addr.h"
|
e60a9728 |
|
d24a2059 |
#define MAX_RECV_BUFFER_SIZE 256*1024
#define BUFFER_INCREMENT 2048
|
e60a9728 |
|
36ef0329 |
int udp_init(struct socket_info* si);
|
e6a2b12e |
int udp_send(struct dest_info* dst, char *buf, unsigned len);
|
abb01fb4 |
int udp_rcv_loop(void);
|
e60a9728 |
#endif
|