Menu

Splitting the mriclient

Edward Lau
2014-08-13
2014-08-13
  • Edward Lau

    Edward Lau - 2014-08-13

    Hi everyone,

    My colleague is starting his project using Gadgetron. In his project, he attempts to split the mriclient into two parts separated by files, one of them only receives data from Gadgetron Host via TCP/IP socket, while another only delivers data to Gadgetron Host, so that there is no scripts that transmit and receive data in the same file.

    I would like to know if it is possible to separate the mriclient in this manner, while maintaining its function as a whole.
    If it is possible to do so, I would like to hear some plausible approaches.

    Thanks,
    Edward Lau

     
    • Michael Hansen

      Michael Hansen - 2014-08-13

      When you say split the client into two files, do you mean split the code
      into two files (which of course you can do any ways that you would like) or
      what I suspect, split the client into two binary executables that would run
      as independent processes?

      If you would like to split it into two processes, then I would say that is
      not possible. It could theoretically be done, but it would require some low
      level programming, that I don't think you would want to get into. The only
      way to make it work somewhat easily is to change the Gadgetron itself to
      use two different ports for sending and receiving and then adapt the
      client(s) to that. Again, that could be some major surgery.

      I am assuming that the reason you would want to do this is that you maybe
      want to send and receive on different computers? If that is the case, a
      better solution might be to modify the client to forward the images it
      receives from the Gadgetron to another port, and then make a simple
      listener on another host.

      Hope this helps,
      Michael

      On Tue, Aug 12, 2014 at 10:15 PM, Edward Lau edward-lau@users.sf.net
      wrote:

      Hi everyone,

      My colleague is starting his project using Gadgetron. In his project, he
      attempts to split the mriclient into two parts separated by files, one of
      them only receives data from Gadgetron Host via TCP/IP socket, while
      another only delivers data to Gadgetron Host, so that there is no scripts
      that transmit and receive data in the same file.

      I would like to know if it is possible to separate the mriclient in this
      manner, while maintaining its function as a whole.
      If it is possible to do so, I would like to hear some plausible approaches.

      Thanks,
      Edward Lau


      Splitting the mriclient
      https://sourceforge.net/p/gadgetron/discussion/general/thread/40e7cbfa/?limit=25#825a


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/gadgetron/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
MongoDB Logo MongoDB