mirror of
https://github.com/videolan/vlc.git
synced 2025-01-21 07:08:35 +08:00
d0bf23fa73
- Major rewrite of the buffer core functions - Modularity of access plugins (file, udp, http) - Modularity of network stack (ipv4, soon ipv6) - Autodetection of the type of stream And a new killing feature : HTTP streams are now seekable. Please note that dvd, dvdread and vcd plug-ins are broken and thus disabled.
47 lines
1.7 KiB
C
47 lines
1.7 KiB
C
/*****************************************************************************
|
|
* network.h: interface to communicate with network plug-ins
|
|
*****************************************************************************
|
|
* Copyright (C) 2002 VideoLAN
|
|
* $Id: network.h,v 1.1 2002/03/01 00:33:18 massiot Exp $
|
|
*
|
|
* Authors: Christophe Massiot <massiot@via.ecp.fr>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* 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.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* 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
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
|
|
*****************************************************************************/
|
|
|
|
/*****************************************************************************
|
|
* network_socket_t: structure passed to a network plug-in to define the
|
|
* kind of socket we want
|
|
*****************************************************************************/
|
|
typedef struct network_socket_s
|
|
{
|
|
unsigned int i_type;
|
|
|
|
char * psz_bind_addr;
|
|
int i_bind_port;
|
|
|
|
char * psz_server_addr;
|
|
int i_server_port;
|
|
|
|
/* Return values */
|
|
int i_handle;
|
|
size_t i_mtu;
|
|
} network_socket_t;
|
|
|
|
/* Socket types */
|
|
#define NETWORK_UDP 1
|
|
#define NETWORK_TCP 2
|
|
|