Does devpoll support dynamic add & remove of fd

I am trying o use devpoll interface to improve the program
efficiency. I used devpoll interface to add fds as they
are created and to remove dynamically, since the program I used
creates sockets dynamically. When I ran the program, the
devpoll interface failed to report that sockets have data.
Any idea?
some errors are:
etNextBtsMsg(): Unexpected event rcvd. scktnum =3 revents = 0x 8
getNextBtsMsg(): Unexpected event rcvd. scktnum =4 revents = 0x 8
Thanks
K.Gnanaratne
#### here is teh code that add soocket number to dev poll list
struct pollfd pollBuf;
if ( scktNum >= k_maxScktNum ) {
cout << "addToPollList(): scktNum exceeds the max limit. scktNum =" << scktNum;
cout << " Qname "<< s_QnameSet[qType & 0x01] << endl;
return -1;
// add to poll list
pollBuf.fd = scktNum;
pollBuf.events = POLLIN|POLLRDNORM;
pollBuf.revents = 0;
if ( ::write(m_pfd[qType], &pollBuf, sizeof(pollBuf) ) != sizeof(pollBuf) ) {
cout << "addToPollList(): write to dev/poll failed. scktNum =" << scktNum;
cout << " error = " << strerror( errno );
cout << " Qname "<< s_QnameSet[qType & 0x01] << endl;
return -1;

You say it's not reporting events, but your errors show events being reported. It sounds like your code doesn't know how to handle things like POLLERR and POLLHUP.

Similar Messages

  • Does UCM support dynamic page creation on contributor mode.?

    Hi All,
    Does UCM support dynamic page creation on contributor mode.
    We want to create new pages and link it into the existing pages
    is that possible?
    Thanks
    ~Hari

    You can create new secondary pages in contributor mode - you would normally do this via a dynamic list fragment though technically you could also achieve it by switching region content and creating new data files. You can then use the linz wizard to link between pages.
    If you are talking about creating new primary pages and sections in your site then you would need to use something like Site Studio Manager fragment.
    Tim

  • How to install software that does not show in add\remove?

    I have a agent that i need to install on all our computers but the program does not show in add\remove when installed correctly.
    It does however have a service that runs and some processes that run.
    Can someone tell me what the best way of installing this is?
    Should I create a collection based of the Service\Process or even based of the file sitting in C:\Program Files.
    I wanted to create a collection of computers that had the software already then create another collection that had all computers with it missing and create a advertisement from this..
    I am just not sure how to do this one when it does not show in add\remove

    Please create the new SCCM query based collection for computers which have required software installed. We can create this collection based on service. 
    For example :Below SCCM query will add the computers which firewall service is in disabled mode.
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SERVICE on SMS_G_System_SERVICE.ResourceId =
    SMS_R_System.ResourceId where SMS_G_System_SERVICE.Name like "MpsSvc" and SMS_G_System_SERVICE.StartMode like "Disabled" 
    Create another collection for computers which have software not installed and add the below query for the collection. Replace the "CollectionID" with collectionID of first collection.
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where ResourceID not in (select ResourceID from SMS_FullCollectionMembership
    where CollectionID = "CollectionID") 

  • I want to uninstall but it does not appear in Add/Remove Programs

    I use Firefox 2.0.0.12. When I accessed today I was aked to install an update, now the thing won't even start up. Message is "firefox.exe has encountered a problem and needs to close. We are sorry for the inconvenience. " I have been on your help site and am told to uninstall it, but it does not appear in Add/Remove Programs list. How can I uninstall it?

    I found an uninstall file in the Mozilla firefox program files and successfully uninstalled the old version of firefox. I have now installed v3.6.13 and all seems OK. Does anyone anticipate any other problems?

  • Does ppr of hgrid line level does not support dynamic switchers?

    Hi this is really critical.... any help would be highly appreciated.I have a a hgrid which conatains a messagechoice and a switcher in each row.This switcher has two cases dummy message style text and a message choice. depending upon the value of first message choice, in this column messagestyletext or messagechoicebox is shown in switcher. this is implemented by ppr on first drop down. this code works completely fine on jdev. but when deployed on server, the page does not refreshes to show the other component in switcher.I have used transient attribute to populate value of switcher.
    Does ppr of hgrid line level does not support dynamic switchers?
    please help!

    Hi Mukul,
    Have you fixed this issue?
    Iam unable to achieve this row level dynamic switcher.
    In my case .. i should be able to display Edit enabled and Edit disabled icons based on some criteria.I have given E as id for enabled and E1 as id for disabled.when i execute the query it is fine but swither is always populating enabled image.
    What could be wrong?
    Thanks
    Soujanya

  • AnyChart: Dynamically add/remove series using javascript

    Hi all,
    The examples on the following page they dynamically show/hide series using javascript without any server side action.
    http://www.anychart.com/products/anychart/docs/users-guide/livesamples/js-series/index.html
    It seems they can do this because they add the chart to the page using javascript and so other js scripts can access a reference to the chart object. Looking at the code generated when you add a flash chart using Apex, it appears they are embedded flash. Does this stop us from using javascript to manipulate the chart object?
    Has anyone managed to do something like the example in the page above using the built-in charting of Apex?

    Between me and another poster we've sort of worked out a solution here - Re: Apex 4.0.2 Manipulate Flash Charts using Javascript?

  • How to dynamically add/remove a button from the ribbon based on some condition? (Ribbon XML)

    Hi,
    I have a ribbon (done using ribbon XML) with menu options. I need to remove few buttons from the menu dynamically based on some condition. Also, I want to change the label of another button. How to achieve this programmatically? (C#)
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    Use callbacks for populating Ribbon controls such as menu, dropDown, gallery and etc. Then you can use the
    Invalidate or
    InvalidateControl methods of the
    IRibbonUI interface to get your callbacks invoked when required. Thus, you will be able to delete the required item(s).
    You will find the following articles in MSDN helpful:
    Chapter 11: Creating Dynamic Ribbon Customizations (1 of 2)
    Chapter 11: Creating Dynamic Ribbon Customizations (2 of 2)
    To change the label of your controls at runtime you need to use the getLabel callback and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. The following series of articles describe the Fluent UI in depth:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • Dynamically add remove table from a scrollpane

    Hi,
    I have a tree of different objects. And have tables for presenting the information of those objects. When i click on the tree node i want the corresponding table to be loaded in the jscrollpane. Is this possible.
    Till now this is my code.,
    tableModel.setObj1(obj1);
         scrollPane.removeAll();
         repaint();
         scrollPane.add(table);
         validate();
    But this does not show up the table, it is blank.
    Any thoughts is greatly appreciated
    Thanks

    forget this post,
    I got the answer
    Thanks

  • Correspondence management - Does CMS support dynamic functionality

    Hi
    We have an requirement that based on the xml input the no. of pages should get generated. This functionality we have implemented in CMSA, the pages are getting generated but the asset which we mapped to template are not displayed.
    For example: My input XML consists of 4 address, In CMS, at layout design we wrote code for no. of address that many pages need to be generated on page level. The same layout we used for creating template.
    While designing an template we used the fragments and assets. The pages which are generated dynamically shows fragment content but not the asset content.
    i.e., Page 1 is displayed properly with all the content of the letter, but the pages generated dynamically have fragment but no asset.
    Do CMS support this type of functionality?
    If yes, please help me in resolving this.
    Thanks in advance
    Regards,
    Sony

    In Numbers '09 there is the function HYPERLINK() described as:
    HYPERLINK
    The HYPERLINK function creates a clickable link that opens a webpage or new email message.
    HYPERLINK(url, link-text)
    • url:  A standard universal resource locator. url is a string value that should contain a properly formatted universal resource locator string.
    • link-text:  An optional value that specifies the text that appears as a clickable link in the cell. link-text is a string value. If omitted, url is used as the link-text.
    Examples
    =HYPERLINK(“http://www.apple.com”, “Apple”) creates a link with the text Apple that opens the default web browser to the Apple homepage.
    =HYPERLINK(“mailto:[email protected]?subject=Quote Request”, “Get Quote”) creates a link with the text Get Quote that opens the default email application and addresses a new message to [email protected] with the subject line Quote Request.
    It's what is the closest feature available.
    Yvan KOENIG (from FRANCE samedi 18 juillet 2009 10:30:29)

  • Does a Hyper-V VM running SQL 2014 Standard Edition support Hot Add Memory?

    According to this article: http://support.microsoft.com/kb/956893
    This was the case with SQL 2012 Standard Edition when running in a Hyper-V VM:
    Q7: Is Hyper-V Dynamic Memory supported for SQL Server? 
    A7: Hyper-V Dynamic Memory is fully supported with SQL Server. Only SQL Server versions and editions that support Hot Add Memory (Enterprise and Datacenter) can see memory that is added by using Hyper-V Dynamic Memory. SQL Server 2012 Standard
    edition also recognizes Hot Add memory when running in a virtual enviroment. SQL Server versions that do not support Hot Add Memory are still supported. But these versions will detect only the memory that is present in the operating system when SQL Server
    starts.
    I setup SQL 2014 Standard Edition in a VM and set it to Dynamic Memory, and just realized that Standard Edition does not support Hot Add Memory.  However, this support article contradicts that, but only mentions SQL 2012.
    Is anyone aware of the real answer to this question?  I just need to know how to configure the memory for my VM to make it run optimally.

    > just realized that Standard Edition does not support Hot Add Memory.  However, this support article contradicts that, but only mentions SQL 2012.
    It would not have been removed in SQL 2014.  So proceed accordingly. 
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Does Captivate 7/8 support *Dynamic* Streaming Video for synchronized Multi-Slide videos?

    I'm experimenting with inserting Streaming Video into Captivate Lessons.  I've set up an Adobe Media Server (AMS) to stream the video.
    When inserting Multi-Slide Synchronized video, it's not clear whether/how I can insert a Dynamic Streaming Video link in a synchronized Multi-Slide Video. 
    (The Dynamic videos can switch between videos of varying quality based on the user's available bandwidth.) 
    I think you're supposed use a URL that points to a manifest file (.F4M), which catalogs the videos of varying bitrates.  However, I can't seem to get it to work in Captivate and Adobe is a little vague on how/if one references the manifest file. (i.e. I can't find any examples.)
    So, does Captivate support dynamic streaming video?
    If not, which is more robust in Captivate? HTTP progressive download or regular (non-Dynamic) RTMP Streaming Video?

    Thanks Erik.
    We did some more tests/checking-around and have convinced ourselves that the URL needs to point to the manifest file in order for Dynamic Media Streaming to work.
    When we examined the Adobe Media Server sample web page (below), we found buttons to select different media sources.
    The 'Multiple Bitrate' button under RTMP Dynamic Streaming Sample is mapped to the URL of an F4M (manifest) file.
    The 'Single Bitrate' button is mapped to an individual mp4 file.
    We also found more clues in the FlowPlayer RTMP F4M page.
    Also, I'm guessing that Captivate can't handle adaptive bitrate streaming from non-RTMP sources based on the menu options. (See screen capture below)
    If the menu above is correct, the first choice is the opposite of streaming media, because it says 'Progressive Download'.  (Progressive download caches the video file on the client machine.)
    The next one is for private Adobe Media Streaming and the third is for 3rd-party Adobe Media Streaming services.
    So, I'm pretty much convinced that it's not supported.

  • How to uninstall IE11 when it does not show in control panel Add/remove so that I can put back IE10

    I finally got HP smart web printing software to work, now I need to know how to uninstall IE11, it does not show in Add/remove programs in control panel, I want to install IE 10 instead as IE 11 keeps shutting down.
    Using HP Pavilion Elite desktop , windows 7 home, product # AY603AA.
    Thanks in advance.
    This question was solved.
    View Solution.

    Emma, welcome to the forum.
    You can go into Control Panel / Programs and Features / Turn Windows features on or off (In the left column).  Uncheck Internet Explorer 11 and click OK.  This will uninstall it.  You can uninstall of install all of Windows features from there.
    Please click the "Thumbs Up+ button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Does Firefox support the use of HTTPS Everywhere program?

    I have just found out about this program https://www.eff.org/https-everywhere and would like your opinion as to it's use and safety. Does Mozilla support this add on? Happy New Year Thank you

    I have been having problems with FF 28.0 freezing when I try to open a private window. I have to cancel it to get FF to stop. After safe mode restarts, disabling all add-ons etc., I can definitely say the culprit is HTTPS-Everywhere 3.5.

  • How to Uninstall iTunes when not in Add/Remove

    How do you uninstall iTunes when it does not appear in Add/Remove programs. For the record, I have used the Window Install Clean-up Utility as described in another thread. Although iTunes appeared in the utilities' list, and seemed to process my request to uninstall (it disappeared from the list), all iTunes program files still remain on my computer, and the icon still appears on my desktop.
    Thanks - Jeff.

    I figured it out.

  • How do I uninstall a program that is not listed in add/remove​?

    Running Windows 7 Home Premium 32-64bit. Hp p6210f.  Installed SIIG USB 2.0 video capture device.  Program installed but did not work. Downloaded updated driver to my desktop. The following icons appeared on my desktop: Applications, DirectX9, Driver,atutorun, autorun,autorun, autorun.tgt and key. Have no idea what to do with these icons. Clicking on Autorun does not work.  Reinserted the install CD to try and uninstall program but there was not uninstall listed.  Also the program does not show in Add/Remove.  The program is shown under Programs X86. I don't understand how to install the driver or how to use this program  The program is listed as "Honestech VHS to DVD 3.0 SE". I would just like to get rid of this program.  Can anyone tell me how?
    Thank you,
    Pauley

    Hi,
    If you are not able to uninstall the software in the usual way from Programs and Features, you could try a third party uninstaller such as the application detailed below.
    Download and install the free version of Revo Uninstaller from the link below.
    http://www.revouninstaller.com/download-freeware-v​ersion.php
    Run revo and see if this detects the installation.  If it does, right click on the icon of the program you wish to remove and select Uninstall. During the process you may be asked to delete registry entries, just select all and then click delete. Do the same for any left-over files and folders. Once the uninstall has completed, restart the notebook.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

Maybe you are looking for

  • Follow-up Activities in Recruitment...

    Hi Experts, I have a query regarding 'Recruitment-PB60'. When I try to do 'Follow-up Activities', it is not working & giving me an error- 'Activity type 007 not maintained (Choose another Entry) & likewise Activity Type 018 & 016 not ..............'

  • How to restore backup archived files

    hi folks i have backup the archived files ,now just for educational purpose i want to back up/restore database from these archived files what steps i will take,i read that control files should also be back up is it true if it is then why control file

  • What value to be set in DB_FILE_NAME_CONVERT ?

    Hi all, I try to create standby database and my datafile are all over my hard disk, what should I do to my DB_FILE_NAME_CONVERT to let my standby database know this issue ? example /prod_data1/system01.dbf /prod_data2/user01.dbf /prod_data3/rbs01.dbf

  • Two feed IDs pointing to the same URL by accident.

    I think I have quite a conundrum here. I manage 2 podcasts, and one of them I had to change hosts. I used the <itunes: new-feed-url> tag which worked great. But unfortunately, I also added it to the second feed XML by accident, and now both feeds poi

  • How to enable AI(accent insensitiv) for one column without changing session

    Following is my test SQL: create table accent_test(col varchar2(10 char); insert into accent_test values('INDIA'); insert into accent_test values('india'); insert into accent_test values('InDiÄ '); Following SQL can only enable CI(Case insensitive),