Socket Thread Question

From: Tom Dyess (tdyess_at_dysr.com)
Date: 12/31/04


Date: Fri, 31 Dec 2004 03:36:51 -0500

Hi,

    I'm creating a newsreader object for use in the global area of a
servlet, so it can be used by multiple threads. I only want a single socket
connection for all threads. For example, a thread would need to talk to the
socket exclusively through several readLine() and printLn() dialog before
any other threads can talk to the socket. Once this thread is finished
communicating through the socket, another thread can communicate to the
socket. How would I accomplish this?

Thanks,
Tom



Relevant Pages

  • Re: SOCKET
    ... This is not entirely correct - I have come across problems communicating ... 'localhost' interface. ... on-board network port and/or NICs are so cheap - "splurge" on a NIC. ... TCP/IP stack (socket) is an overkill for this... ...
    (microsoft.public.vc.mfc)
  • Sorry - 1 more point
    ... "Tom Dyess" wrote in message ... >> socket connection for all threads. ... Sorry, one more point, I will be communicating with the socket like this ... public synchronized void loadNewsgroups() { ...
    (comp.lang.java.programmer)
  • Re: FTP Vs Data stream
    ... Nash wrote: ... The applications are ... already communicating through sockets. ... layer in over the socket should make the socket more efficient. ...
    (microsoft.public.dotnet.languages.csharp)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)