[Live-devel] Query regarding turnOnBackgroundReadHandling()

venugopalpaikr venugopalpaikr at tataelxsi.co.in
Sun Sep 28 21:47:42 PDT 2008


Hi Ross,
        My understanding was not right and hence please ignore my previous
mail. But am still not able to understand the LIVE555 code. I am having no
clue as to where i should proceed after the below mentioned...I don't want
to create a server media session as i am tring to establish a connection
using vlc player and so i don't know the stream details as yet.


int main(int argc, char** argv)
{

//Set up task scheduler
UsageEnvironment* env;
TaskScheduler* scheduler=BasicTaskScheduler::createNew();
env=BasicUsageEnvironment::createNew(*scheduler);
UserAuthenticationDatabase* authDB=NULL;
#ifdef ACCESS_CONTROL
//to implement client access control
authDB=new UserAuthenticationDatabase;
authDB->addUserRecord("xx","xxx123");
#endif

RTSPServer* rtspServer=RTSPServer::createNew(*env,554,authDB,45);

My main ques is regarding turnOnBackgroundReadHandling(). In this function a
particular socket is set for reading using FD_SET. Once a request has come
to this socket what action will be taken by this code.???

also since incomingConnectionHandler()is a static void private function
which function in the server class can access this function?





-----Original Message-----
From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com]On Behalf Of Ross Finlayson
Sent: Friday, September 26, 2008 7:07 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Query regarding turnOnBackgroundReadHandling()



>Additionally i also wanted to know as to how the flow will go to the
>function
>void RTSPServer::incomingConnectionHandler(void* instance, int /*mask*/)

This is an event handler, and is called from within the event loop
whenever incoming data is available on the specified socket
number.  (See the code for "BasicTaskScheduler")


	Ross Finlayson
	Live Networks, Inc. (LIVE555.COM)
	<http://www.live555.com/>

_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.


More information about the live-devel mailing list