]> sjero.net Git - linphone/blob - linphone/mediastreamer2/tests/mtudiscover.c
remote ortp and add it as a submodule instead.
[linphone] / linphone / mediastreamer2 / tests / mtudiscover.c
1 /*
2 mediastreamer2 library - modular sound and video processing and streaming
3 Copyright (C) 2006  Simon MORLAT (simon.morlat@linphone.org)
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 */
19
20
21 #include "mediastreamer2/mscommon.h"
22
23 int main(int argc, char *argv[]){
24         
25         ms_init();
26         if (argc<2){
27                 ms_error("Usage: mtudiscover [host]");
28                 return -1;
29         }
30         ortp_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
31         printf("result: %i \n",ms_discover_mtu(argv[1]));
32         return 0;
33 }