Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
InputInternet.h
Package: VC++视频传输.rar [view]
Upload User: hxb_1234
Upload Date: 2010-03-30
Package Size: 8328k
Code Size: 2k
Category:
Visual C++ Books
Development Platform:
Visual C++
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #ifndef INPUT_INTERNET_H
- #define INPUT_INTERNET_H
- #include "MediaClasses.h"
- #include <wininet.h>
- #include <fcntl.h>
- #include <stdio.h>
- #include <io.h>
- #include <crtdbg.h>
- #define BUFFERING_SIZE 1024000
- class MediaInputInternet : public MediaItemInput {
- public:
- FILE *file;
- FILE *dnld;
- HINTERNET hInternet;
- HINTERNET http;
- HANDLE httpThread;
- HANDLE bufferingMutex;
- DWORD httpId;
- DWORD running;
- DWORD buffering;
- DWORD downloaded;
- DWORD size;
- DWORD lastReadPos;
- MediaInputInternet();
- ~MediaInputInternet();
- media_type_t GetType();
- char *GetName();
- MP_RESULT Connect(MediaItem *item);
- MP_RESULT ReleaseConnections();
- DWORD GetCaps();
- MP_RESULT Configure(HINSTANCE hInstance, HWND hwnd);
- MP_RESULT Open(char *url, media_input_mode_t mode);
- long GetSize();
- long GetBufferSize();
- long GetBufferPosition();
- long GetBufferingSize();
- unsigned int Read(MediaBuffer *mb, unsigned int size);
- unsigned int Seek(int size, media_input_seek_t method);
- BOOL EndOfFile();
- unsigned int GetLine(MediaBuffer *mb);
- MP_RESULT Close();
- };
- #endif