Re: tcp double connections bad?



On Tue, 11 Apr 2006 14:24:58 +0200, Andersen
<andersen_800@xxxxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :

The design avoids several problems, but I want to know what are the
negative consequences.

You can use separate threads to write and read sides of the same
socket. You don't need two different sockets for that.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: Looking for information on MFC TCP Communication
    ... > Note that to use the MFC socket classes the separate threads must be UI threads, ... > there is rarely a need to use separate threads. ... > objects, and not touching the GUI, there are no "thread issues". ... allocate the buffer, but this may be allocating / deleting alot of ...
    (microsoft.public.vc.mfc)
  • Re: Managing read/write socket without polling
    ... >I need to manage multiple socket connections to a server. ... >happens if data becomes available for writing while the thread is ... Using separate threads may be the simplest solution. ...
    (comp.unix.programmer)
  • Re: console reading and writing to a socket
    ... it's console based and when i run it on eclipse i can only ... - use separate threads for console and socket IO ...
    (comp.lang.java.programmer)
  • Re: Connecting to a socket and reading from it
    ... >I'm trying to connect to a socket and read from it just the code loop on ... http://mindprod.com Java custom programming, consulting and coaching. ... Prev by Date: ...
    (comp.lang.java.programmer)