[Live-devel] max client read streams = 32 / env? + potential win32 contribution

Karl Gierach KGierach at avst.com
Tue Aug 16 21:02:55 PDT 2005


Hi,

I'm new to LiveMedia. I've done some experimentation to see how many concurrent streams can be processed on a single thread / environment.

I added some code to NetCommon.h to get my environment to support more than 64 sending streams (below).
However my receiving environment still did not get past 32 streams per thread.
My hack was creating multiple threads - each thread has its own UsageEnvironment and handles up to 32 streams. Is a better solution available?

The sending stream modification is here:
Netcommon.h:

--snip- (lines starting with '*' are my additions)
#elif defined(__WIN32__) || defined(_WIN32) || defined(_WIN32_WCE)
/* Windows */
*    #define _USE_WSOCK2_ // uncomment this to force winsock2
*    #ifdef _USE_WSOCK2_
*    #define FD_SETSIZE 1024 // karl - support 1024 sending streams
*    #define _WINSOCKAPI_ // eliminate std. winsock from sneaking into includes
*    #endif
-snip-


A potential contribution for win32 users is a collection of visual studio 6.0 projects that drop in place to the source tree and build the libraries with click of a button. I find them useful for debugging. If interested I will send them to the project moderator.

Thanks,
-Karl






More information about the live-devel mailing list