2 Replies Latest reply on Dec 20, 2007 7:30 PM by Newsgroup_User

    TCP/IP Buffer

    Level 7
      When you create an instance of the MUS xtra and define a buffer size, is
      the same buffer used for both sending and receiving data?

      If so, when you set a buffer size of say 1k, and a client is sending a
      1k message at the same time it is receiving a 1k message, what happens?

      Would you be able to prevent such bottlenecks by creating 2 instance of
      the MUS xtra, and using 1 for sending and the other for receiving?
        • 1. Re: TCP/IP Buffer
          Level 7
          > When you create an instance of the MUS xtra and define a buffer size, is
          > the same buffer used for both sending and receiving data?
          No. Two buffers are created, one for sending and one for receiving.
          As for bottlenecking, in general...
          If you creating a tcp only app, and a few extra ms lag is no problem, then
          you are ok.
          If not, then don't forget to force checknetmessage -e.g. in an exitframe
          handler- to increase performance, since the mu (and not mus, btw) xtra seems
          to be quite lazy at that department.

          Check the movie at the bottom of http://gomu.rebus.gr/ , which uses on
          optimized version of this trick.
          Note that the movie cheats a bit in favor of the normal mode, and still,
          depending on message size and network conditions, the speed difference can
          be from equal to several times faster when forcing the check.


          "Dave C" <no@no.com> wrote in message
          news:fke3v8$aee$1@forums.macromedia.com...
          > When you create an instance of the MUS xtra and define a buffer size, is
          > the same buffer used for both sending and receiving data?
          >
          > If so, when you set a buffer size of say 1k, and a client is sending a 1k
          > message at the same time it is receiving a 1k message, what happens?
          >
          > Would you be able to prevent such bottlenecks by creating 2 instance of
          > the MUS xtra, and using 1 for sending and the other for receiving?


          • 2. Re: TCP/IP Buffer
            Level 7
            No UDP, and a few ms of lag are ok. Thanks as always.