How to send message to direct connected users

Hi,
I am working on a text Chat application with FMS4 "RTMFP" connection and i am looking a functionality to send direct message to one to another peer, please some one help me.
Thanks
Sushil

Below are the lines from above link which you can use for your purpose if your users are directly connected.
Sending Message
// peer2ID is of #2 (Moscow)
var message:Object = new Object();
message.destination = netGroup.convertPeerIDToGroupAddress(peer2ID);
message.value = "Hello I am message from #1";
netGroup.sendToNearest(msg, msg.dest);
Receiving Message
When you receive a Direct Routing message, it comes to NetStatusEvent with code “NetGroup.SendTo.Notify”:
netGroup.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
function netStatus(event:NetStatusEvent):void{
     switch(e.info.code){
     case "NetGroup.SendTo.Notify":
          // e.info.message contains our message Object
          trace("Received Message: "+e.info.message.value);
          break;
But this will work only if #2 is a neigbor of #1.
So if it is not directly connected use forwarding.
Regards,
Amit

Similar Messages

  • How to send messages to the specified user through sap

    how to send messages to the specified user through sap

    Hi Santosh,
    try:
        CALL FUNCTION 'TH_POPUP'
             EXPORTING
                  CLIENT         = SY-MANDT
                  USER           = BNAME "User you want
                  MESSAGE        = MSG "text you want
             EXCEPTIONS
                  USER_NOT_FOUND = 1.
    Regards, Dieter

  • How to send message to another ipod user

    Hello Team ,
    Please help me to understand , how to send message to another user of Ipod
    I am having ipod 4G touch , So please guide me on this .
    also Can we pair ipod to any bluetooth head set  , Curretnly i having Samsung strero phone head phone model no SBH650 .
    Please help me ....
    Thank you
    Regards
    Mahesh

    Hi
    Please check FM <b>TH_POPUP</b>
    Is this what you require ?

  • Idea of sending a message for all connected users.

    Dears,,,
    I'm trying to develop through oracle forms an idea of sending a pop-up message to all connected users.
    Example, I need to inform users to quit in 5 minutes due to a restart to the application server.
    I thought about a timer trigger that will check every 5 seconds or 10 seconds a value somewhere in a table. But I don't want to use the timer triggers associated in oracle forms.
    Is there any idea ?
    Please let me know.
    Joe

    Use Iframe tag.
    For this:
    Add an “IFRAME” in the base html file used (for example basejpi.htm file)
    <NOEMBED>
    </COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!-- Forms applet definition (end) -->
    %HTMLafterForm%
    <IFRAME SRC="/forms/java/iframe.html">
    </BODY>
    </HTML>
    Then create an html file named "iframe.html" with the following content :
    <HTML>
    <HEAD>
    <meta http-equiv="refresh" content="10">
    </HEAD>
    <BODY>
    <H1>Please disconnect, The system will go Down !!!!</H1>
    </BODY>
    </HTML>
    Every time you would like to send a message, just add it in the iframe.html file ans users will see it.
    The iframe size can be customized.

  • HT3529 On ipad3, wifi only, how can I send messages to non iOS users?

    On ipad3, wifi only, how can I send messages to non iOS users?
    I have MacBook, and iPhone 4 as well

    Your're wrong on the overly sensitive part. I couldn't care less about android or some other stuff that you are comparing, what i do care about... enough to take the time to explain, is that your view on things colors the choices you make.
    You clearly state your decision making process and the marketing is doing their work on you.
    You think in terms of comparisons and competitors and that will always get you. The truth is, I'm glad Apple finally focused on how "something makes you feel" with iOS 7. There is so much truth in that one sentence!
    There is so much noise out there about screen size, n core processors and price comparisons you can never get a good feel of what the product really is. By the time you figure out you were taken on a marketing hike, a new model comes out and the story starts all over again. (think of the nokia 40 megapixel camera, or the quad core samsung, those are exagerations to impress the consumer) Imagine the size of the jpg's on that phone, all those megapixels with the quality of a phone camera, ridiculous. Soon we will have 12-core phones with 7 inch screens, and people being led into thinking you can do everything on it, "one thing to rule them all", buy now! I saw a woman on the metro the other day with a 6' phone, I swear the thing was almost half the size of her head.
    It's almost 2014 and you are complaining you can't send sms(which is a 25 year old technology by the way) with this new device. All your friends are using outdated tech and because you want to talk to them you want outdated tech too. Sms is insecure, easily snooped upon and recorded, the carrier charges for it and charges more for international sms, and so on... and on... internet chat has been free since the 1990s and it's about time it got free on our phones too.
    Just forget about it. Enjoy other people taking the decisions, you can't take yourself, for you. Trust them, see if it fits, care about life, act emotionally when you "feel" like it. You deserve that, you are human, take the feeling home with you, share it with others.
    Who cares if it's the 2014 edition or quad core... I gave my old iPad 3 to my grandmother so I could call her on Facetime. I bought the iPad Air on a whim, I just "felt" I wanted it. After a couple of weeks she thought about asking me if she could call my brother in the UK too, and how much it would cost. I said it was free, and she looked at me in disbelief. She is now calling my brother weekly by herself... she is 78. Can you imagine that... all I did is give her my "old" iPad.
    Buying the iPad Air was the single best decision of my life, not because of the size or the weight or even iOS 7 (i do enjoy them by the way) but because it made me give my old iPad to my grandmother.
    She doesn't even understand how it works, I figured it would be too much useless stuff to mention... it just does! Here put your finger here and here, then tap the name... wait for him to answer. Unbelievable!!!
    PS. I figured the best gift I can make is give my old Apple devices to people who would never in a million years buy one for themselves. You see them in shops, they are our mothers and friends... they look at the huge prices and they would never give that much to themselves, they feel they don't deserve it. They gave me money to buy all the useless cr@p I ever wanted in my youth, the least I could do is gift them my "old tech" to enrich their lives. Going to buy a 5S soon and give my 4S to someone for free, but it's going to be someone I care deeply about, deeply enough to change their lives.

  • HT1495 How can I send messages to other iPad users when we all have the same aacount

    How can I send messages to other iPad users when we all have the same aacount

    Use different Apple ID's.

  • In solman 4.0 how to send message to SAP through service desk

    Dear all,
            I have configured service desk functionality, My requirement is from service desk how to send message to SAP.
    Regards,
    Pavan.

    Hi,
    Following the steps:
    &#131;Basic configuration - RFC Connections to SAP
    Check if the RFC Connectino SAPOSS is working properly
    Check if load distribution group is set to EWA
    The RFC Connections:
    - SAP-OSS (Send Message to SAP)
    - SAP-OSS-LIST-O01 (Update Message from SAP)
    will be created automatically by the system with a user which has been assigned
    previously.
    IMG Path: SAP Web Application Server | SAP Web Application Server | SAP Solution Manager| Basic Settings | SAP Solution Manager System | Connection to SAP | Assign user for forwarding Service Desk Message
    With transaction SM59 you can adjust the RFC connections.
    - For further information on SAP R/3 Front-end connections, see SAP Notes: 33135, 766505, 24177
    - To forward Service Desk notifications and Issues to SAP, you need to assign a user to the SAPNet R/3
    Front-end connection to SAP.
    Activities:
    - 1. From the SAP Solution Manager (transaction SOLUTION_MANAGER), choose (Edit-> Global Settings.
    - 2. Choose Display<->Change.
    - 3. For SAP Service Marketplace, specify http://service.sap.com as the URL.
    - 4. In the Connection to SAP tab, specify SAPOSS as the RFC destination. Note that the entry is casesensitive.
    - 5. For User forwading messages, enter a valid user and a password. This user will require all the authorizations for SAPNet R/3 Front-end for your customer number.
    - 6. Save your changes.
    The system automatically generates the following RFC destinations and assigns the S-User and password you specified: SAP-OSS, SAP-OSS-LIST-O01
    Good Lucky!

  • How to  send messages via shareobject in FMS

    How to send messages via shareobject in FMS
    I need some codes.
    I want to send some string messages via shareobject, the
    string messages can be retrieve in client.
    Can you give me some codes? Thank you for your help..
    /

    Thanks for your comment.
    en....I want to do something..I will maintenance a users list
    in charroom.
    I write a function in main.asc file , client can get users
    list via call the function.
    I write some codes in application.onConnect
    when a user connect, it will add users list.
    In application.onDisconnect, when a user disconnect, it will
    remove from users list.
    My hope when a user disconnect, I send a message to
    shareobject. the shareobject is called in other clients.
    Other client can retrieve the remove user message, they will
    call the function to get new users list.
    It is my idea. Can you give me some codes for my idea?
    Thank you very much.

  • TS5185 My IPAD will not send messages to non APPLE users.

    Today, Christmas Day, while trying to send a message my IPAD wanted me to turn on iMessage. There was no option not to do this. After it was turned on I could no longer send messages to non Apple users. After reading online that I could set send SMS on my IPHONE I did. Now I guess it send everything as an SMS message. Now my IPAD will not send messages to non Apple users. I guess Apple wants us to pick our friends only if the use Apple products. This is about as stupid as it gets. They want us to only communicate with Apple users. The only other option is to turn the feature off. Why have iMessage in the first place.
    So my situation is I can send SMS Messages on my IPHONE. I cannot send any messages to non Apple users on my IPAD and iMessages to my Apple users.
    This kind of stupidity is why I switched from Windows to Apple in the first place. Don't they test anything out anymore at Apple?

    Please don't take this the wrong way, but I think that you might be doing something wrong.
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support
    To use Continuity for SMS and MMS with your iPhone and your Mac, iPad or iPod touch
    Your iPhone, iPad, and iPod touch need to use iOS 8.1, and your Mac needs to use OS X Yosemite.
    Sign in to iMessage on your iPhone, your other iOS devices, and your Mac using the same Apple ID.
    On your iPhone:
    Go to Settings > Messages > Send & Receive > You Can Be Reached By, and add a check to both your phone number and email address.
    Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
    Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.

  • How to send messages in iChat in plain text? (no html)

    How to send messages in iChat in plain text? I don't need any formatting nor hiding links in achor tags.

    HI,
    In the View Menu once you have a Chat window open is the Messages item which allows you to change the style of the IM.
    However this still sends a HTML like packet for dispalyiing the info at the other end.
    This does not work to ICQ users.
    Chax, an iChat Add-on, works in iChat 5 and lower (although there are then different versions) and can strip out the HTML part for sending to ICQ users.
    However there is not yet a Lion/iChat 6 version.
    8:43 PM      Monday; December 12, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to send external mails to the user

    Dears,
    How to send external mails to the user who creates the sales document (Quotation)
    Can you please suggest what modification required in the FM
    Thanks,
    pinky

    You can have a partner function like 'Created by' and use an exit to populate the User ID to this partner function(dont have the system right now but i think this can be done with standard partner detr. procedure also)
    Then, create an Output type for that Partner function with transmission medium as 'External Send'. You can use the standard SAP program to trigger the email. To send the actual email after the output is trigerred, the link connection has to be set up be BASIS but if you want to check, then goto SOST and see if the email got trigerred or not.

  • HT4623 how to send messages in bulk

    how to send messages in bulk

    HI,
    In the View Menu once you have a Chat window open is the Messages item which allows you to change the style of the IM.
    However this still sends a HTML like packet for dispalyiing the info at the other end.
    This does not work to ICQ users.
    Chax, an iChat Add-on, works in iChat 5 and lower (although there are then different versions) and can strip out the HTML part for sending to ICQ users.
    However there is not yet a Lion/iChat 6 version.
    8:43 PM      Monday; December 12, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to send message to a multi-consumer queue using pl/sql

    How to send message to a multi-consumer queue using pl/sql ? Thanks.
    I tried following, but got an message: no receipient specified.
    DBMS_AQ.ENQUEUE(
    queue_name => 'aqadm.multi_queue',
    enqueue_options => queue_options,
    message_properties => message_properties,
    payload => my_message,
    msgid => message_id);
    COMMIT;
    END;
    /

    Here's two way to enqueue/publish new message into multi-consumer queue.
    (1) Use explicitly declared recipient list
    - Specify "Recipients" by setting recipient_list to messge_properties, before ENQUEUE().
    DECLARE
    recipients DBMS_AQ.aq$_recipient_list_t;
    BEGIN
    recipients(1) := sys.aq$_agent('RECIPIENTNAME',NULL,NULL);
    message_properties.recipient_list := recipients ;
    (2)Or, declare subscriber list permanently. Then you need not to specify recipient list each time you call ENQUEUE().
    begin
    dbms_aqadm.add_subscriber(
    queue_name=>'YOURQUEUE',
    subscriber=> sys.aq$_agent('RECIPIENTNAME', null, null)
    end;
    You can add 1024 local subscriber include maximum 32 remote-queue-consumer to one queue.

  • How to send an  email to external user (offline form) from se38

    Hi all
    how to send an  email to external user (offline form) from se38 and upload the same from recipent.
        we have sent mail using scripts and smartforms but couldnt do here. It will be helpful if you can give us any sample code
    regards
    mohammed

    Hi,
    Have a look at this thread [Re: Sending PDF forms (created using SFP) as Email Attachment]  i explain all the solution with a sample code .
    Hope it's help you
    regards

  • I don't know how to send message to my friends via message

    I downloaded mountain lion yesterday but I don't know how to send message to the imessage on ipad or iphone. The account of my friend's seems doesn't work and I have no access to sending message to that account.

    Welcome to Apple Communities
    Press the + button to select a contact. Then, write whatever you want in the white box and press Enter key. You can use it with contacts with iPhone, iPod touch, iPad or Mac with Mountain Lion

Maybe you are looking for