How can I automatically connect to multiple connecting streams? to have 2 way communications foreach

I need to setup a send stream that will only allow each farID to connect 1 time, and automatically connect to the connector so I ca have 2 way communication.
I learned if in my onpeerconnect function i do this...:
var c:Object = new Object;
c.onPeerConnect = function(subscriber:NetStream):Boolean
   if(ready==ready)
   if(receiveStream==null)
    setupReceiveStream(subscriber.farID);
    return true;
    else
    return false;
it seems to work fine, and they will start a 2 way connection BUT i want to potentially allow multiple connections, and setup multiple receive streams so im trying to com up with a solution to check if its already streaming to the peer. I wish I could just do this:
var c:Object = new Object;
c.onPeerConnect = function(subscriber:NetStream):Boolean
    setupReceiveStream(subscriber.farID);
    return true;
But, for some reason it just keeps returning true over and over and over it doesnt just do it once on the connect, i get something like this:
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Play.Reset
NetStream.Play.Start
So, heres what im trying to do:
protected function setupSendStream():void
sendStream = new NetStream(netConnection, NetStream.DIRECT_CONNECTIONS);
sendStream.addEventListener(NetStatusEvent.NET_STATUS, sendStreamHandler);
var c:Object = new Object;
c.onPeerConnect = function(subscriber:NetStream):Boolean
var test:Boolean=true;
var THEStream:NetStream = null;
for each (var stream:NetStream in sendStream.peerStreams)
if (stream["farID"] == subscriber.farID)
well=false;
trace("found it!");
if(test)
setupReceiveStream(subscriber.farID);
trace("returned true");
return true;
else
trace("returned false");
return false;
sendStream.client=c;
sendStream.publish("MyChannel");
trace("SETUP SEND STREAM");
cirrusStatus=connectedReady;
But it seems like after it returns true and runs the setup, so i can have 2 way communication, it runs the onpeerconnect function 1 more time after it returns true, and its a return false and then it makes the play fail and it ruins the connection.
Any ideas on how I can listen for connects to my sendStream, then have it get the farID and then connect to that farID?
keep in mind im trying to potentially support multiple connections to my sendstream which i think will be easy, but whats more confusing is having multiple receivestream connections

"Method Three
Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks

Similar Messages

  • In ADF how can i insert data in multiple table if they have foreign key

    I have started working on ADF and can anybody inform me in ADF how can i insert data in multiple table if they have foreign key,please?
    Thnak you very much.

    Hello,
    Still no luck.I am surely doing silly mistakes.Anyway,Here are my workings-
    1> student_mst (id(pk),studentname) and student_guard_mst(id(fk),guardianname)
    2> created EO from both of the tables,made id in both EO as DBSequence and an association was also generated.
    3> i made that association composite by clicking the checkbox
    4> i created 2 VO from 2 EO.
    5> put those VO in Application Module.
    6> dragged and dropped 2 VO on my jspx page and dropped them as ADF Form.
    Now what to do please?

  • How can I hyperlink pages between multiple indd docs, and have them work in a pdf?

    Ok, this is confusing, so I'm going to try to be as clear as possible. I'm using InDesign CS6.
    I am working on a catalog, over 500 pages, which is split into several smaller indd files.
    I need to end with one single pdf of the whole catalog, with links to different pages. For example, there's an index in the back, a TOC in the front, and various "related product" type references throughout the catalog which I would like to have the page numbers as clickable links.
    When I try just linking to the different docs, either clicking it in the pdf opens the indd file (not helpful) or nothing happens at all (even less helpful). So I assume there must be a trick to it. Or it's impossible.
    I know how to do this if everything was one big indd file, but it's not. I suppose that could be an option but I really don't know how my mac will react to a file that large.
    So, how can I make this happen? Is there a way? Would it be better to just do this in Acrobat?

    I actually did already create a book with all the files in it, but I couldn't figure out how that was helpful. The hyperlink panel doesn't seem to have any "book" options (unless I'm looking in the wrong place?) and just linking to the different files (after creating the book) didn't have any different results than linking to the files before I created the book.
    I thought maybe linking to the different files in the book would work if I could export the whole book to pdf at once (which would be super-helpful in and of itself), but that doesn't seem to be an option either.
    I guess what I'm asking is for you to elaborate on what to do after creating the book.
    Thanks!

  • How can I automatically connect to the server without having to type the password and click "connect"?

    I have a Mac OS X 10.8 and a Time Capsule configurated as server with a name "Servidor" on my home. The discs are protected by Accounts, so, each person can access the server by typing own name and password. The problem is... Every time I start the computer, I see the window below:
    So, every time I start I have to type my name and pass. And the box "Remember this password on my keychain" doesn't work because the "Password" is always blank when I see the window, like the image up.
    Please, someone help me to automatize it so I don't need to type nothing to connect to the server. I want something that do it automatically for me.
    NOTE: Please, explain clear and with details because I'm a new Mac's user.
    Thank so +!

    Try running KeyChain First Aid if you have not already done so.
    Open Keychain Access and click on the KeyChain Access menu at upper left of the screen
    Click KeyChain First Aid, then close KeyChain Access
    Open System Preferences (gear icon on the dock)
    Open Network
    Click on AirPort or WiFi on the left
    Click Advanced at the lower right
    Click to highlight an old network that you no longer need, then click the - (minus) button to delete the listing
    Do the same for other neworks that you no longer need
    Make sure there is a check mark in the box that reads  "Remember networks this computer has joined"
    No other boxes should be checked.
    Click OK, then click Apply
    That is about all that you can do.

  • How can you automate to combine multiple photos in photoshop

    i have thousand photos prefer to combine them in a group of 3 photos into one combined photo in an automated process...
    3 photos should line up accordingly one after one ... crop the combined photo to the max size possible ... set the image size of combined photo to 2000 by 1300 pixels ... save the combined photo...
    start with the next 3 photos in the folder...
    is this possible to automate with photoshop cc?...
    thanks for help...
    cheers,

    The contact sheet script is what it is.  If you need more than what it provides, I suggest you create your own custom scripts and actions.
    Record Your Own Actions in Photoshop CC - For Dummies
    How to create your own Photoshop scripts | Photoshop | Creative Bloq
    Nancy O.

  • HT2305 I have forget my 4 digit passcode for my ipad 3 and exhausted all the attempts, Now the screen shows "ipad is disabled connect to itunes" How can I unlock my ipad now. Also I have not put "Find my iphone" in icloud as well. Please guide me to unloc

    I have forget my 4 digit passcode for my ipad 3 and exhausted all the attempts, Now the screen shows "ipad is disabled connect to itunes" How can I unlock my ipad now. Also I have not put "Find my iphone" in icloud as well. Please guide me to unlock it.

    Also when I am trying to connect ipad to my windows PC, it shows, your software is up to date and later starts restoring while updating again. Then automatically it stops to update halfway and I have to repeat the process again and again, still in vain.

  • I am using windows 8.1. But I recieved the error This apple id is valid but is not an icloud account. How can I get connected to Icloud?

    I am using Windows 8.1. When I try to connect to Icloud I get the Message: This Apple id is valid, but is not an icloud account.
    How can I get connected to Icloud?

    Hello pmarrone,
    You may only sign up for an iCloud account via one of the following systems or devices.
    You can sign up for iCloud on an iPhone, iPad, or iPod touch with iOS 5 or later, or through System Preferences on a Mac with OS X Lion v10.7.4 or later. Just follow the setup instructions for your iOS device or Mac.
    Creating an iCloud account: Frequently Asked Questions
    http://support.apple.com/kb/HT4436
    Cheers,
    Allen

  • Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello. I can say that you have a quite strange „huge question”… It’s non-sense to stay connected with your car which is hundreds miles away. Unless…
    I have a theory. You don’t want to controll your car, you want to controll somebody who is driving the car. Volvo XC 60 is a nice family car, usually used by married men between age of 35-45, probably with small children, so it’s very unlikely that you want to controll your teanage kid, mainly because probably even if you would give him/her to drive the car in the neighborhoud, I don’t think that he/she would be „several hundred miles away”…  If your child is not young teneage anymore, and he/she has his/her own life, but you want to control him/her, that is sick… So I am convinced that you want to controll your husband who probably travelling often! Am I wright?
    Isnt’t nice at all! Would you like if you would be monitorized in such way? I bet you don’t!
    Anyway, iPhone is smart, you can use for many things, but come on, you really were thinking that there is such kind of application???
    What could you do it's to put in the car a GPS survelling system, however I don't think that you could do it without your husband knowledge, otherwise he won't be able to start the engine...

  • How can I change Connection parameters when promoting to Production ???

    Hi Everyone !
    Do you know how can I change Connection Framework parameters in a Webdynpro Application? The app was deployed in TEST, now I want to move it to Production...
    In my application I am using Connection Framework to connecto to a BAPI.
    The connection was created using
    SAP Connectivity > SAP Enterprise Connector.
    I provided connection parameters for a TEST environment (Host name, system number, client, logon name...).
    I deployed the application in TEST, but how can I change these parameters prior to promote it to Production? Were and how do I fill the new parameter values?
    Many Thanks,
    Silvio Hirashiki

    Hi Silvio,
    AFAIK, you need to provide JCO connection to proxy port type and all connection specific data is there. (http://help.sap.com/saphelp_nw04/helpdata/en/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm). You can use configuration files for this or RFC destination.
    You only need to regenerate proxy when interfaces of functional modules are dufferent for TEST and Production.
    BTW, why are you using SAP EC instead of adaptive RFC model in WD application?
    Best regards, Maksim Rashchynski.

  • I have lost PassWord to join to my "Net"; How can I get Connection ?

    I have been using TATA  PHOTON+ dongle to get "Net" through the ROUTER  "HAME"  ( MPR-A1 3G ROUTER)  for the last 12 months .
    Recently while using the iPad2,  I clicked on some " UPDATE "  and  then I have lost the Internet connection . On several  trials now I am
    stuck up at a step which is asking PASSWORD to  JOIN  the Network. I  am  not at all recollecting the required  PASSWORD .
    Now  how  can  I  find  out  the  original  PW ?  OR  in  its  absence,  how  can  I  get  connected  to  the  Internet ,  and  if 
    necessary,  how  can  I  create  a  NEW  PASSWORD ?
        WILL  SOMEBODY  KINDLY  HELP  ME  SOON  ?  MANY  THANKS  IN  ADVANCE ! 
                                                                                                                              Sincerely,  Dr. R.V.JOSHI.  INDIA .

    Hello,
    Is your Pc connected to the same Wifi Network ?

  • How can I disable Connect / AS SYSDBA

    Hi,
    How can I disable
    CONNECT / AS SYSDBA
    Regards

    1) Oracle version?
    2) OS?
    3) Looks like you're using OS authentication method. Switch to password-file method, and set a meaningful password for sys. You'll need the users which should not login as sysdba out of the OSDBA group, since OS authentication has priority over password file authentication. To setup password file authentication, you'll need the parameter REMOTE_LOGIN_PASSWORDFILE at "EXCLUSIVE". You'll also need to create a password file ("ORAPWD FILE=filename PASSWORD=password ENTRIES=max_users").
    HTH
    Daniel

  • How can I (automatically) import new photos of the photostream on my local disc (Mac)? Don't want to use new icloud service. Simply import.

    New Photo app on Mac.
    How can I (automatically) import new photos of the photo stream on my local disc (Mac)? Don't want to use new icloud service. Simply import.
    With iPhoto every new photo was automatically imported and saved on my local disk (with "full resolution" that's what I only need). In the new photo app I have still my photo stream and when I move a photo (drag and drop from the photo stream) to a new album it indicates a (plus). My understanding is that the photo is now copied to my local disk. But when I deleted the photo in the photo stream it was also deleted in the album !?
    If that is the case I can use the photo stream only until I reach the max of 1.000 photos, then I have to delete photos and I will have no copy left.
    How can I "physically" copy a photo of the photo stream to my local disk? I just want to "transfer" all pictures taken with Ipads, Iphones to my central storage on the Mac. Please don't propose to connect it via iTunes (cable) to the Mac.
    Any other suggestions?
    thx
    -Tom

    The amazing device cannot do it because no amazing developer has written an app for it.  There is some interest, others have asked, but i have a hunch that the market is fairly limited, and no developer has jumped at the chance just yet.
    Any sort of tethered approach means try to feed the material to the pad thru the cck.  Which means the app would have to use the allowed/existing cck pathway in a manner that does not violate the sandbox rules.  That may be the problem.

  • How can i automate .pdf output and organize by color/bw?

    how can i "automate" multi-page .pdf output to preflight/imposition software workflow, organized by color/bw?
    basically what i'm trying to do is create a simple output function from InDesign that allows the user to just export a multi-page .pdf into a hot folder and on through preflight and imposition software. i want to be able to tell the hot folder which pages are color -so it can separate, rename and direct color pages to a color queue and b/w pages to a b/w queue.
    i've researched indesign distiller presets and the Acrobat JDF but the JDF isn't really meant for this exact purpose and doesn't help reduce the number of steps currently necessary to manually output/rename/etc.
    is there another way that i can embed information into a .pdf that could be read by a hot folder?

    You might check out this third-party plug-in for InDesign. It may or may not help you (I've never used it). I just saw it on the new Adobe Exchange (beta in Adobe Labs). Here's the description:
    Output Factory automates printing and exporting from Adobe InDesign. Export as single pages with variable file names, output layer versions, update modified links on the fly, preflight InDesign files before output, output to several format at once and much more.
    Just select the documents, adjust settings and Output Factory will do the rest for you. Keep working with other programs while Output Factory processes InDesign files in the background. Or leave it working overnight to output hundreds of documents, and the job will be done when you return in the morning.
    Key features:
    • Output multiple InDesign files automatically
    • Output as single pages
    • Automate printing and exporting to PDF, PostScript, EPS, Flash, IDML, EPUB and several image formats
    • Output files to multiple formats at once
    • Layer versioning: output layer combinations as single files
    • Update modified links automatically
    • Variable output file names
    • Preflight InDesign files and final PDFs
    • Supports books and booklet printing
    • Send output files over Internet and locally
    • Detailed output history
    System Requirements:
    - Adobe InDesign CS3-CS6
    - Mac OS X 10.5 and later, Intel-based Mac

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • How can I sync Iphone to a PC calendar then have multiple users share that calendar? Is there an application that does that?

    How can I sync Iphone to a PC calendar then have multiple users share that calendar? Is there an application that does that?

    If it is actually an exchange calendar, and it's not linked to a specific user, it should be possible to simply add the exchange account to each device in question and have that exchange account only sync the calendar.  Then every user has access to the same calendar and can add/edit entries to the calendar as needed.
    The same would apply if it were a Google calendar added via Exchange.
    If the calendar is not actually on Exchange, but rather added from an outside source, it will depend on that outside source where the calendar originates.

Maybe you are looking for