📄 mmstu.c
字号:
/***************************************************************************** * mms.c: MMS access plug-in ***************************************************************************** * Copyright (C) 2001, 2002 VideoLAN * $Id: mmstu.c 11080 2005-05-20 16:03:15Z fenrir $ * * Authors: Laurent Aimar <fenrir@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. *****************************************************************************//***************************************************************************** * Preamble *****************************************************************************/#include <stdlib.h>#include <vlc/vlc.h>#include <string.h>#include <vlc/input.h>#include <errno.h>#ifdef HAVE_UNISTD_H# include <unistd.h>#endif#ifdef HAVE_FCNTL_H# include <fcntl.h>#endif#ifdef HAVE_SYS_TIME_H# include <sys/time.h>#endif#ifdef HAVE_SYS_TYPES_H # include <sys/types.h>#endif#ifdef HAVE_SYS_STAT_H# include <sys/stat.h>#endif#if defined( UNDER_CE )# include <winsock.h>#elif WIN32# include <winsock2.h># include <ws2tcpip.h># ifndef IN_MULTICAST# define IN_MULTICAST(a) IN_CLASSD(a)# endif#else# include <sys/socket.h># include <netinet/in.h># if HAVE_ARPA_INET_H# include <arpa/inet.h># elif defined( SYS_BEOS )# include <net/netdb.h># endif#endif#include "network.h"#include "asf.h"#include "buffer.h"#include "mms.h"#include "mmstu.h"#undef MMS_DEBUG/**************************************************************************** * NOTES: * MMSProtocole documentation found at http://get.to/sdp ****************************************************************************//***************************************************************************** * Local prototypes *****************************************************************************/int E_( MMSTUOpen ) ( access_t * );void E_( MMSTUClose ) ( access_t * );static int Read( access_t *, uint8_t *, int );static int Seek( access_t *, int64_t );static int Control( access_t *, int, va_list );static int MMSOpen ( access_t *, vlc_url_t *, int );static int MMSStart( access_t *, uint32_t );static int MMSStop ( access_t * );static void MMSClose( access_t * );static int mms_CommandRead( access_t *p_access, int i_command1, int i_command2 );static int mms_CommandSend( access_t *, int, uint32_t, uint32_t, uint8_t *, int );static int mms_HeaderMediaRead( access_t *, int );static int mms_ReceivePacket( access_t * );/* * XXX DON'T FREE MY MEMORY !!! XXX * non mais :P *//* * Ok, ok, j'le ferai plus... *//* * Merci :)) *//* * Vous pourriez signer vos commentaires (m阭e si on voit bien qui peut * 閏rire ce genre de trucs :p), et 閏rire en anglais, bordel de * merde :p. *//* * Alors la ouai
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -