4 Replies Latest reply on Feb 15, 2008 11:01 AM by Newsgroup_User

    Is it possible to send a text message using the UDP protocol?

    Level 7
      Support doc
      http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
      says to use the following format with connectToNetServer:
      errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
      "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
      "MySecret", #movieID: "Tech Chat"], #mode: #smus, #localUDPPort: 1627,
      #localAddress: "123.45.67.89", #remoteTCPPort: 1626])

      But if I change the mode to #text, it still sends out messages as smus.
      In fact, if I leave out the UDP parameters altogether but still use the
      list parameters for connectToNetServer, it still always sends as smus.

      Sends as smus:
      errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
      "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
      "MySecret", #movieID: "Tech Chat"], #mode: #text, #localUDPPort: 1627,
      #localAddress: "123.45.67.89", #remoteTCPPort: 1626])

      Sends as smus:
      errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
      "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
      "MySecret", #movieID: "Tech Chat"], #mode: #text])

      Only the string parameter method can be made to send text messages.
      Sends as text:
      errCode = gMultiuserInstance.connectToNetServer("Bob", "MySecret",
      "chatServer.myCompany.com", 1626, "Tech Chat", 1)

      Am I missing something? Is this a known issue? Anyone have a work around?

      -Jeremy
        • 1. Re: Is it possible to send a text message using the UDP protocol?
          Level 7
          And the question is?

          "Jeremy Aker" <jeremy@uthd.com> wrote in message
          news:fp212i$f9r$1@forums.macromedia.com...
          > Support doc
          > http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
          > says to use the following format with connectToNetServer:
          > errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
          > "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
          > "MySecret", #movieID: "Tech Chat"], #mode: #smus, #localUDPPort: 1627,
          > #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
          >
          > But if I change the mode to #text, it still sends out messages as smus. In
          > fact, if I leave out the UDP parameters altogether but still use the list
          > parameters for connectToNetServer, it still always sends as smus.
          >
          > Sends as smus:
          > errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
          > "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
          > "MySecret", #movieID: "Tech Chat"], #mode: #text, #localUDPPort: 1627,
          > #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
          >
          > Sends as smus:
          > errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
          > "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
          > "MySecret", #movieID: "Tech Chat"], #mode: #text])
          >
          > Only the string parameter method can be made to send text messages.
          > Sends as text:
          > errCode = gMultiuserInstance.connectToNetServer("Bob", "MySecret",
          > "chatServer.myCompany.com", 1626, "Tech Chat", 1)
          >
          > Am I missing something? Is this a known issue? Anyone have a work around?
          >
          > -Jeremy


          • 2. Re: Is it possible to send a text message using the UDP protocol?
            Level 7
            I'm really sorry that I wasn't clear enough. I'll repeat the questions
            more concisely.
            Is it possible to send a text message using the UDP protocol? If so, how?
            Is the bug I described in my original message (see below) really a bug
            or am I doing something wrong?
            If it's a bug, does anyone have a work around?

            alchemist wrote:
            > And the question is?
            >
            > "Jeremy Aker" <jeremy@uthd.com> wrote in message
            > news:fp212i$f9r$1@forums.macromedia.com...
            >> Support doc
            >> http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
            >> says to use the following format with connectToNetServer:
            >> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
            >> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
            >> "MySecret", #movieID: "Tech Chat"], #mode: #smus, #localUDPPort: 1627,
            >> #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
            >>
            >> But if I change the mode to #text, it still sends out messages as smus. In
            >> fact, if I leave out the UDP parameters altogether but still use the list
            >> parameters for connectToNetServer, it still always sends as smus.
            >>
            >> Sends as smus:
            >> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
            >> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
            >> "MySecret", #movieID: "Tech Chat"], #mode: #text, #localUDPPort: 1627,
            >> #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
            >>
            >> Sends as smus:
            >> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
            >> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
            >> "MySecret", #movieID: "Tech Chat"], #mode: #text])
            >>
            >> Only the string parameter method can be made to send text messages.
            >> Sends as text:
            >> errCode = gMultiuserInstance.connectToNetServer("Bob", "MySecret",
            >> "chatServer.myCompany.com", 1626, "Tech Chat", 1)
            >>
            >> Am I missing something? Is this a known issue? Anyone have a work around?
            >>
            >> -Jeremy
            >
            >
            • 3. Re: Is it possible to send a text message using the UDP protocol?
              Level 7
              The multiuserXtra supports either tcp text or tcp smus connections.
              The ability to send udp messages was an expansion to the original mus
              protocol/xtra and is valid only for muXtra instances already connected in
              smus mode.
              So, if you are asking if you can create a udp instance and use it at will
              (exchange udp messages with some remote udp socket), then the answer is no.


              "Jeremy Aker" <jeremy@uthd.com> wrote in message
              news:fp49oj$16f$1@forums.macromedia.com...
              > I'm really sorry that I wasn't clear enough. I'll repeat the questions
              > more concisely.
              > Is it possible to send a text message using the UDP protocol? If so, how?
              > Is the bug I described in my original message (see below) really a bug or
              > am I doing something wrong?
              > If it's a bug, does anyone have a work around?
              >
              > alchemist wrote:
              >> And the question is?
              >>
              >> "Jeremy Aker" <jeremy@uthd.com> wrote in message
              >> news:fp212i$f9r$1@forums.macromedia.com...
              >>> Support doc
              >>> http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
              >>> says to use the following format with connectToNetServer:
              >>> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
              >>> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
              >>> "MySecret", #movieID: "Tech Chat"], #mode: #smus, #localUDPPort: 1627,
              >>> #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
              >>>
              >>> But if I change the mode to #text, it still sends out messages as smus.
              >>> In fact, if I leave out the UDP parameters altogether but still use the
              >>> list parameters for connectToNetServer, it still always sends as smus.
              >>>
              >>> Sends as smus:
              >>> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
              >>> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
              >>> "MySecret", #movieID: "Tech Chat"], #mode: #text, #localUDPPort: 1627,
              >>> #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
              >>>
              >>> Sends as smus:
              >>> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
              >>> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
              >>> "MySecret", #movieID: "Tech Chat"], #mode: #text])
              >>>
              >>> Only the string parameter method can be made to send text messages.
              >>> Sends as text:
              >>> errCode = gMultiuserInstance.connectToNetServer("Bob", "MySecret",
              >>> "chatServer.myCompany.com", 1626, "Tech Chat", 1)
              >>>
              >>> Am I missing something? Is this a known issue? Anyone have a work
              >>> around?
              >>>
              >>> -Jeremy
              >>

              • 4. Re: Is it possible to send a text message using the UDP protocol?
                Level 7
                Drat!
                Thanks for the answer though.

                alchemist wrote:
                > The multiuserXtra supports either tcp text or tcp smus connections.
                > The ability to send udp messages was an expansion to the original mus
                > protocol/xtra and is valid only for muXtra instances already connected in
                > smus mode.
                > So, if you are asking if you can create a udp instance and use it at will
                > (exchange udp messages with some remote udp socket), then the answer is no.
                >
                >
                > "Jeremy Aker" <jeremy@uthd.com> wrote in message
                > news:fp49oj$16f$1@forums.macromedia.com...
                >> I'm really sorry that I wasn't clear enough. I'll repeat the questions
                >> more concisely.
                >> Is it possible to send a text message using the UDP protocol? If so, how?
                >> Is the bug I described in my original message (see below) really a bug or
                >> am I doing something wrong?
                >> If it's a bug, does anyone have a work around?
                >>
                >> alchemist wrote:
                >>> And the question is?
                >>>
                >>> "Jeremy Aker" <jeremy@uthd.com> wrote in message
                >>> news:fp212i$f9r$1@forums.macromedia.com...
                >>>> Support doc
                >>>> http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
                >>>> says to use the following format with connectToNetServer:
                >>>> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
                >>>> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
                >>>> "MySecret", #movieID: "Tech Chat"], #mode: #smus, #localUDPPort: 1627,
                >>>> #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
                >>>>
                >>>> But if I change the mode to #text, it still sends out messages as smus.
                >>>> In fact, if I leave out the UDP parameters altogether but still use the
                >>>> list parameters for connectToNetServer, it still always sends as smus.
                >>>>
                >>>> Sends as smus:
                >>>> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
                >>>> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
                >>>> "MySecret", #movieID: "Tech Chat"], #mode: #text, #localUDPPort: 1627,
                >>>> #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
                >>>>
                >>>> Sends as smus:
                >>>> errCode = gMultiuserInstance.connectToNetServer([#remoteAddress:
                >>>> "chatServer.myCompany.com", #logonInfo: [#userID: "Bob", #password:
                >>>> "MySecret", #movieID: "Tech Chat"], #mode: #text])
                >>>>
                >>>> Only the string parameter method can be made to send text messages.
                >>>> Sends as text:
                >>>> errCode = gMultiuserInstance.connectToNetServer("Bob", "MySecret",
                >>>> "chatServer.myCompany.com", 1626, "Tech Chat", 1)
                >>>>
                >>>> Am I missing something? Is this a known issue? Anyone have a work
                >>>> around?
                >>>>
                >>>> -Jeremy
                >