How to catch/use Remote/LocalCollisionEvent

Hello everyone,
I am trying to detect when a user is already comunicating (busy) with another one. I unsuccessfully tried inserting event handlers both in my transmitting and receiving classes as follows:
public class ReceiveClass
implements ReceiveStreamListener, SessionListener,
ControllerListener
public boolean initialize ()
try
mgr = RTPManager.newInstance ();
mgr.addSessionListener ( this );
mgr.addReceiveStreamListener ( this );
public synchronized void update ( SessionEvent evt )
if ( evt instanceof NewParticipantEvent )
Participant p = ( ( NewParticipantEvent ) evt ).getParticipant ();
System.err.println ( " - A new participant has just joined: " +
p.getCNAME () );
/* un usuario se ha conectado*/
/* se cambia el icono y se deja habilitado*/
else if ( evt instanceof LocalCollisionEvent )
long ssrc = ( ( LocalCollisionEvent ) evt ).getNewSSRC();
System.err.println ( " - Local Collision Event: " + ssrc );
/* un usuario ya esta conectado con otro usuario */
public synchronized void update ( RemoteEvent evt )
if ( evt instanceof RemoteCollisionEvent )
long ssrc = ( ( RemoteCollisionEvent ) evt ).getSSRC ();
System.err.println ( " - Remote Collision Event: " + ssrc );
/* un usuario ya esta conectado con otro usuario */
public class TransmitingClass
implements SessionListener, RemoteListener
public synchronized void update ( SessionEvent evt )
if ( evt instanceof NewParticipantEvent )
Participant p = ( ( NewParticipantEvent ) evt ).getParticipant ();
System.err.println ( " - A new participant has just joined: " +
p.getCNAME () );
/* un usuario se ha conectado*/
/* se cambia el icono y se deja habilitado*/
else if ( evt instanceof LocalCollisionEvent )
long ssrc = ( ( LocalCollisionEvent ) evt ).getNewSSRC ();
System.err.println ( " - LocalCollisionEvent: " +
ssrc );
/* un usuario ya esta conectado con otro usuario */
public synchronized void update ( RemoteEvent evt )
if ( evt instanceof RemoteCollisionEvent )
long ssrc = ( ( RemoteCollisionEvent ) evt ).getSSRC ();
System.err.println ( " - RemoteCollisionEvent: " +
ssrc );
/* un usuario ya esta conectado con otro usuario */
could anyone give me some hints regarding this issue? What would I be doing wrong or what would I be missing?? In the above code piece I am able to catch the NewParticipantEvent but the other ones...
Thank you very in advance,
Olivier

Hi,
Its simple and complex at the same time. First you need to have DNS resolution for IPv6 addresses (Records AAAA) in internal DNS. For This, have a look at this blog post :
http://danstoncloud.com/blogs/simplebydesign/archive/2013/01/12/dns64-behavior-change-in-windows-server-2012.aspx
Once you have name resolution you should be able to ping (if not, NAT-Transversal or protocol is not enabled in the firewall). Next move is to enable incoming network flow for remote assistance and enable NAT-Transversal. At this stage, Remote assistance
should work but network flow between directaccess clients will not be protected by IPSEC tunnels of DirectAccess. We will need to build our own IPSEC transport rules for that.
Thats a subject I'm trying to finalize in a blog post, but i'm short in time these days.
BenoitS - Simple by Design http://danstoncloud.com/blogs/simplebydesign/default.aspx

Similar Messages

  • How can I use remote disk?

    I just installed bootcamp on my Macbook Air. How can I use remote disk so that I can put a disc in my Mac Mini and use it in Windows 7 on my Air?

    Here are instructions directly from Apple: http://support.apple.com/kb/HT1777?viewlocale=en_US

  • How to find/use remote installer in 10.8

    I'm trying to erase my harddrive on an older macbook air and need to use "remote installer" on the base computer with the optical drive.  However, my imac uses OS 10.8 and doesn't seem to have this utility.  How do I accomplish the remote re-install without this utility or where can I find/download it?
    Thanks

    Hello Justin Cave ;
    Example :
    I have two databases.
    1st database block size is : 8192 (8k)
    2nd database block size is : above 8192  (128 k)
    i want to move  export table  from one database to another database.
       -   If block size is differ , can we done exp/imp successfully in 10g or higher version ?
              - please explain little , little more explanation ?

  • How can I use remote app in a dorm?

    I have the most recent version of the remote app for my iPhone 4S, and I'd like to control the iTunes on my 2010 MacBook Pro, but I am in a dorm, so I only have access to the communal "ResHall" wifi. Both my computer and my phone are on this network, but they will not recognize one another. I have turned Home Sharing on and off on both (in different orders as well, i.e. turn both off, turn homesharing on MacBook on first vs. on iPhone first), as well as verified that they are using the same Apple ID. My MacBook's firewall is already set to allow incoming data to iTunes. The router IP address is the same for both machines. Is there any quick (or not so quick, I'm open to anything at this point) way to use remote in a dorm like this?

    Hey Ajthebassist,
    Thanks for the question. After reviewing your post, it sounds like you are having difficulty pairing the Remote app with iTunes. This article may be able to help in this situation.
    Remote app for iPhone, iPad, or iPod touch can't connect to iTunes or Apple TV
    http://support.apple.com/kb/TS1741
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • How to develop using remote MySQL data?

    I need to develop an application with Flash Builder 4, but I need to develop using live data from the server?
    Can this not be done with Flash Builder 4?
    Brad Lawryk
    Adobe Community Professional: Dreamweaver
    Northern British Columbia Adobe Usergroup: Manager
    My Adobe Blog: http://blog.lawryk.com

    Okay.  Same answer really.  Most hosting providers will provide MySQL database connectivity as a default option (e.g a2 hosting).  Then when you deploy your app you are still talking to a database on the localhost (the web server) since your code is there too.  You can also write an AIR app that runs on your desktop and talks to the database on the web server using the same PHP stuff but just pointing to the remote I.P address. 
    For testing I use MAMP (mac) which gives me MySQL, Apache and PHP in one install.
    Regards
    Des.

  • Use remote panel on the web after bulid executable applicatio​n(*.exe)

    Dear All
    i have a vi with using remote control on the web.
    But how can i use remote control on the web after bulid executable application(*.exe)
    maybe add someting to installer or ............

    A simple search for "executable LabVIEW web" should generate some relevant results.
    Try to take over the world!

  • How to use remote JMS in websphere5?

    I want to use JMS in another server to send message so that I config required jndi in server. When I lookup local JMS jndi(connection factory, queue) it works correctly. But when I lookup remote connectionfactory, it throws 'javax.naming.CommunicationException'. BTW, local configuration is same as JMS server. And I use WSAD 5.1.1 to develop it.
    The first question is if I need use JMS server on another server, I should lookup remote queue and JMS connection factory on that server, right?
    The second question : If yes, how to obtain remote JMS connection factory? I use WSAD 5.1.1 trail, I don't know is it possible to obtain remote jndi.
    The third question : do I need change any configuration for supporting remote JMS client instead of local(same compute, different jvm) environment?
    The following is my client code to obtain remote queue:
    public class Test {
         public static void main(String[] args) {
              Properties env = new Properties();
              env.put(Context.INITIAL_CONTEXT_FACTORY,
                    "com.ibm.websphere.naming.WsnInitialContextFactory");
              env.put(Context.PROVIDER_URL, "corbaloc:iiop:10.240.4.203:2809");
              try {
                   Context initialContext = new InitialContext(env);
                   Object obj = initialContext.lookup("jms/IPharmQueue1");
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }It works ok when ip is localhost. But it can obtain remote queue or connectionfactory. I tried to lookup other EJB, it also failed.

    Actually, I have application in one server and four same server as cluster. But only one server provides JMS service. So my application need to use remote JMS server instead of local server. But in my development environment I can not simulate cluster environment as customer environment. So I try to let my application access remote JMS server in different computer. When two server start up I found my application will get local JMS connection factory and queue instead of remote factory. Even I put IP of another computer in PROVIDER_URL.
    I did a application client to test it. The code is above. But it can not lookup remote jndi.
    I use WAS5 as server and WSAD 5.1.1 as development IDE.
    Is any idea about it?

  • How to set up my elderly parent with Mac so that I can use remote access to help her?

    I want to set my elderly mother up with a new Mac mini so that I can use remote access to show her how use email, browse the internet, share photos.  (She lives in KY, I live in OR)
    She has had an iPhone and an iPad for about 6 months and she can barely use them without becoming frustrated.   I want to be able to see her screen with her and show her how to do things.
    My plan is to set her up with a Mac mini and I'll use my MacBookAir to remote into her system.  I'm buying the mini to configure and then I'll mail it to her.
    My question is whether to try to use Back to My Mac or Teamviewer for remote access
    I have broadband with comcast and she has broadband with Access Cable.  Each have their company modem/routers--neither of us have Airport Express.
    I have my own iCloud account and she has her own.   If I use Back to My Mac, it seems that I would need to set up a separate account on my Mac that would sync to her iCloud account.
    Teamviewer seems easier because I don't have to use a separate account.   Any advice?   Anything that I'm not thinking about?

    As Linc says, you can establish a Screen Sharing session via iMessage and Facetime.  The advantage of these 2 approaches is that once your Mom gets used to using them, she will be more comfortable using them to communicate with you.  I've talked to my Mom via iChat (aka iMessage) more since she learned to use them, then in all the years before that (including when I was a child ).  And just being able to see your Mom via Facetime can be useful when you want to gage how she is doing.
    However, if you are any distance from your Mom, they you want backup methods incase something goes wrong.
    So beside iMessage/Facetime, the next best would be Back-to-My-Mac via iCloud, however, you will want to establish her Mac as using your account so that you have the right to take control remotely.
    An alternative that does not mix up your iCloud acounts would be to use TeamViewer.com (which has an unattended mode so you can do off-hour maintenance when your Mom is not around; or check up on her to find out if she is dating - Turns out if I had been paying attention, I would not have been blind-sided by my Mom getting Married again last Summer - she is in her 80's! ).
    LogMeIn.com, as dwb says, can be used the same was as TeamViewer.com
    Both LogMeIn.com and TeamViewer.com are very good at making it easy to get through the home router and if you are having any problems connecting using other Methods, TeamViewer.com or LogMeIn.com will most likely not have any issues.
    Back-to-My-Mac allows screen sharing and file sharing so you can transfer files as well as control the screen.
    Screen Sharing via Messages allows cooperative file transfer. That is to say, you can try pushing a file to your Mom, but she has to accept each transfer.
    TeamViewer.com has an unattended file transfer mode.
    LogMeIn.com requires the paid version to transfer files.  However, there are other ways to transfer files, such as downloading them from the original source on your Mom's system while using screen sharing, using Dropbox (or similar), emailing them, etc...
    Of course if you are really network savvy, you can roll your own via ssh tunnels, port forwarding routers, getting dynamic DNS names, transferring files via scp, or tunneling AFP file sharing, tunneling your screen sharing sessions.  Lots of fun and excitement playing with terminal commands

  • How do i use my apple remote on my macbook pro

    how do i use my apple remote on my macbook pro?

    Hi,
    System Preferences > Accounts > Your Account
    Select current  Pic and chose to Change it.
    You get an option to take a SnapShot.
    Quicktime will also be able to access it and record using Quicktime  X in Snow Leopard.
    Check the Menu items for New Recording.
    MSN for Mac can use it (It depend on version and in some cases whether you are connected to the correct type of Windows server)
    Yahoo (This is in Beta 3 and has been for years)
    Results can vary.
    A Web Browser with the Flash Plug-in active can access the camera on certain Web Sites that run video Chat rooms
    See Koowy
    (Type anything to Create a Room Name
    On the New Page allow access to the camera in the Flash Pop Up - You may need to use the tabs to Select Camera type.
    Send Buddy the URL of that page).
    Also see Here (Work by EZ Jim)
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.
    9:44 PM      Saturday; May 7, 2011
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
    , Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How do I use iCloud to collaborate on a GarageBand project with a remotely located musician?

    How do I use iCloud to collaborate on a GarageBand project with a remotely located musician?  He is in Valencia, Spain, I am in Green Bay, Wisconsin.  We'd like to be able to work on the same GarageBand document together, laying down tracks, etc.
    Is there a tutorial I should look at?

    Are you using GarageBand on a Mac or on an iPad?
    With iCloud you can store your GarageBand projects in iCloud, so you can work on the same project on all your iPads, iPods, iPhones, and transfer it from your iDevices to your Mac.  But you cannot use iCloud to share a project between people with different AppleIDs.  
    To send GarageBand projects back and forth, compress the the ":band" files and mail them, if they are small enough or put them in a Dropbox or other cloud storage and mail the link.

  • How do I use apple remote with iPhone 5 ?

    How do I use apple remote with iPhone 5 ?

    Iphones dont have ir at all which the remote use for comm
    Only option is to use a dock which have ir

  • How do you use the ATV with the remote when you place it out of sight?

    I placed my ATV behind my tv, though it does not wake up and work with the remote control. How do you use the ATV in this type of situation? Will the Bluetooth keyboard work with it if it is behind the TV?
    Thanks.

    Yes bluetooth and wifi (remote app from your iPhone) are far more likely to work for you.

  • Q.  how do I turn on home sharing so I can use remote on my phone for apple tv

    how do I turn on home sharing so I can use remote on my phone for apple tv

    Welcome to the Apple Community.          (5)
    The following article(s) may help you.
    Understanding Home Sharing
    Setting Up Home Sharing On A Computer

  • How to use Remote key for linking two repository

    Hi,
    I have a challenge like not to repeate common tables like Company_code,Currency,Vendor name,customer name across all repositories.
    Is there any way I can use 'Remote key' to link different repository.
    I can create a Main table with all common attributes required across the repository but want to know how I can connect it to different repository.
    For example to get company-code in Vendor table , how can I link Company-code main table(customized) in another repository may be thru 'Remote key'.
    Going thru java api route is not prefffered for the sake of simple solution.
    Appreciate your help in providing any idea and detail steps for the process.
    -regards, Reo

    could you confirm the name and the existence of this file "IOMM_20121213_060736.csv" ?
    same error like:
    http://www.oracle-base.com/articles/9i/external-tables-9i.php
    if the load files have not been saved in the appropriate directory the following result will be displayed.
    SQL> SELECT *
      2  FROM   countries_ext
      3  ORDER BY country_name;
    SELECT *
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file Countries1.txt in EXT_TABLES not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1Edited by: Fran on 10-ene-2013 23:32

  • How do I use an apple tv remote to control my mac

    I am having a macbook pro with retina. How do I use an apple tv remote to control my mac?Is there a way. For eg. if I want to control the volume using the remote how do I do?

    No, the iPad has no IR receiver. (I think you mean "Airplay" and not "Airdrop", by the way.)

Maybe you are looking for

  • Getting Error while installing abap Netweaver 7.02 trial, import Abap step

    INFO       2011-12-25 18:15:04.687            CJSlibModule::writeInfo_impl() Output of C:\j2sdk1.4.2_12\bin\java.exe -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst is written to the logfile import_monitor.

  • "Manual Planning in SAP Retail w/o MAP

    Hi Can we create "Planning Scenario in SAP Retail w/o MAP " ? Can we do manual plannings in SAP Retail w/o BI , MAP? if so whats the limitation? Which are possible  for the following scenrios in SAP Retail w/o MAP /BI 1. Planning Scenario ( Budget Pl

  • Please send me some interview quetions in ALE /IDOC's

    please send me some interview qutions in ALE /IDOC'c  it will help me a lot

  • ACS 4.2 license key location

                       I am installing ACS on another server but I do not have the original license key, is there a way to find the license from the old ACS. The old ACS is not functioning, none of the services will start, I cannot use the web front end,

  • Slide show blurry

    I saw that someone else had this problem and the question wasn't answered. So, here it is again: When I view photos in slideshow, they are blurry. If I view them other ways, they look fine. Bob G4   Mac OS X (10.4.6)