[xiph-commits] r6890 -
illiminable at dactyl.lonelymoon.com
illiminable
Sat Jun 26 10:30:20 PDT 2004
trunk/oggdsf/src/lib/core/directshow/dsfOggDemux
Message-ID: <20040626173020.40C3F9AAAB at dactyl.lonelymoon.com>
Author: illiminable
Date: Sat Jun 26 10:30:20 2004
New Revision: 6890
Added:
trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.cpp
trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.h
Modified:
trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/dsfOggDemux.vcproj
Log:
* Start of networking backend.
Added: trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.cpp 2004-06-26 17:18:28 UTC (rev 6889)
+++ trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.cpp 2004-06-26 17:30:19 UTC (rev 6890)
@@ -0,0 +1,24 @@
+#include "StdAfx.h"
+#include "httpfilesource.h"
+
+HTTPFileSource::HTTPFileSource(void)
+{
+ WORD locWinsockVersion = MAKEWORD(1,1);
+ WSADATA locWinsockData;
+ int locRet= 0;
+
+ locRet = WSAStartup(locWinsockVersion, &locWinsockData);
+ if ((locRet != 0) || (locWinsockData.wVersion != locWinsockVersion)) {
+ //Failed to setup.
+ WSACleanup();
+ throw 0;
+ }
+
+
+
+}
+
+HTTPFileSource::~HTTPFileSource(void)
+{
+ WSACleanup();
+}
Added: trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.h
===================================================================
--- trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.h 2004-06-26 17:18:28 UTC (rev 6889)
+++ trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.h 2004-06-26 17:30:19 UTC (rev 6890)
@@ -0,0 +1,19 @@
+#pragma once
+
+class HTTPFileSource
+ : public IFilterDataSource
+{
+public:
+ HTTPFileSource(void);
+ ~HTTPFileSource(void);
+
+
+ virtual unsigned long seek(unsigned long inPos);
+ virtual void close() ;
+ virtual bool open(string inSourceLocation);
+ virtual void clear();
+ virtual bool isEOF();
+ virtual unsigned long read(char* outBuffer, unsigned long inNumBytes);
+
+ virtual bool setupSocket(string inSourceLocation);
+};
Modified: trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/dsfOggDemux.vcproj
===================================================================
--- trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/dsfOggDemux.vcproj 2004-06-26 17:18:28 UTC (rev 6889)
+++ trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/dsfOggDemux.vcproj 2004-06-26 17:30:19 UTC (rev 6890)
@@ -141,6 +141,9 @@
RelativePath="FilterFileSource.cpp">
</File>
<File
+ RelativePath="HTTPFileSource.cpp">
+ </File>
+ <File
RelativePath="OggDemux.def">
</File>
<File
@@ -205,6 +208,9 @@
RelativePath="FilterFileSource.h">
</File>
<File
+ RelativePath="HTTPFileSource.h">
+ </File>
+ <File
RelativePath="IFilterDataSource.h">
</File>
<File
More information about the commits
mailing list