2001-04-20 17:02:48 +02:00
|
|
|
/*****************************************************************************
|
2002-03-01 01:33:18 +01:00
|
|
|
* network.h: interface to communicate with network plug-ins
|
2001-04-20 17:02:48 +02:00
|
|
|
*****************************************************************************
|
2002-03-01 01:33:18 +01:00
|
|
|
* Copyright (C) 2002 VideoLAN
|
2003-08-01 01:44:49 +02:00
|
|
|
* $Id: network.h,v 1.4 2003/07/31 23:44:49 fenrir Exp $
|
2001-04-20 17:02:48 +02:00
|
|
|
*
|
2001-12-27 04:47:09 +01:00
|
|
|
* Authors: Christophe Massiot <massiot@via.ecp.fr>
|
2001-04-20 17:02:48 +02:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2002-03-01 01:33:18 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* network_socket_t: structure passed to a network plug-in to define the
|
|
|
|
* kind of socket we want
|
|
|
|
*****************************************************************************/
|
2002-07-20 20:01:43 +02:00
|
|
|
struct network_socket_t
|
2002-03-01 01:33:18 +01:00
|
|
|
{
|
|
|
|
unsigned int i_type;
|
|
|
|
|
|
|
|
char * psz_bind_addr;
|
|
|
|
int i_bind_port;
|
|
|
|
|
|
|
|
char * psz_server_addr;
|
|
|
|
int i_server_port;
|
|
|
|
|
2003-08-01 01:44:49 +02:00
|
|
|
int i_ttl;
|
|
|
|
|
2002-03-01 01:33:18 +01:00
|
|
|
/* Return values */
|
|
|
|
int i_handle;
|
|
|
|
size_t i_mtu;
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
};
|
2002-03-01 01:33:18 +01:00
|
|
|
|
|
|
|
/* Socket types */
|
|
|
|
#define NETWORK_UDP 1
|
|
|
|
#define NETWORK_TCP 2
|
|
|
|
|