]> git.sesse.net Git - vlc/blob - include/network.h
dfaf7f658da482263fda3013216fa9236243315a
[vlc] / include / network.h
1 /*****************************************************************************
2  * network.h: interface to communicate with network plug-ins
3  *****************************************************************************
4  * Copyright (C) 2002 VideoLAN
5  * $Id: network.h,v 1.1 2002/03/01 00:33:18 massiot Exp $
6  *
7  * Authors: Christophe Massiot <massiot@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * network_socket_t: structure passed to a network plug-in to define the
26  *                   kind of socket we want
27  *****************************************************************************/
28 typedef struct network_socket_s
29 {
30     unsigned int i_type;
31
32     char * psz_bind_addr;
33     int i_bind_port;
34
35     char * psz_server_addr;
36     int i_server_port;
37
38     /* Return values */
39     int i_handle;
40     size_t i_mtu;
41 } network_socket_t;
42
43 /* Socket types */
44 #define NETWORK_UDP 1
45 #define NETWORK_TCP 2
46