Named pipes in threads

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philippe C. Martin

    Named pipes in threads

    HI,

    I currently have a "working" script that uses sockets to handle threads
    communications - the problem is that it gives me obvious problems in handling
    free ports (launching the script more than once ....).

    Is thread named pipes communication allowed ?

    Regards,

    Philippe
  • Michael Fuhr

    #2
    Re: Named pipes in threads

    "Philippe C. Martin" <philippecmarti n@sbcglobal.net > writes:
    [color=blue]
    > I currently have a "working" script that uses sockets to handle threads
    > communications - the problem is that it gives me obvious problems in handling
    > free ports (launching the script more than once ....).[/color]

    Who is communicating with whom? Threads communicating with other
    threads in the same process? Threads communicating with a peer
    external to the process? What "obvious problems" are you having?
    [color=blue]
    > Is thread named pipes communication allowed ?[/color]

    What happened when you tried it?

    What are you trying to do? Perhaps if you backed up and described
    the "what" we could make better recommendations about the "how."

    --
    Michael Fuhr

    Comment

    • Jive

      #3
      Re: Named pipes in threads


      "Philippe C. Martin" <philippecmarti n@sbcglobal.net > wrote in message
      news:mailman.75 51.1102870873.5 135.python-list@python.org ...[color=blue]
      > HI,
      >
      > I currently have a "working" script that uses sockets to handle threads
      > communications - the problem is that it gives me obvious problems in[/color]
      handling[color=blue]
      > free ports (launching the script more than once ....).
      >
      > Is thread named pipes communication allowed ?
      >
      > Regards,
      >[/color]

      Replace the sockets with a queue of strings.


      Write your Send and Recv functions in terms of Queue.get() and Queue.put();[color=blue]
      > Philippe[/color]


      Comment

      Working...