Socket Thread Question
From: Tom Dyess (tdyess_at_dysr.com)
Date: 12/31/04
- Next message: Tom Dyess: "Re: Socket Thread Question"
- Previous message: Yamin: "Re: Custom Protocol over TCP"
- Next in thread: Tom Dyess: "Re: Socket Thread Question"
- Reply: Tom Dyess: "Re: Socket Thread Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Tom Dyess: "Re: Socket Thread Question"
- Previous message: Yamin: "Re: Custom Protocol over TCP"
- Next in thread: Tom Dyess: "Re: Socket Thread Question"
- Reply: Tom Dyess: "Re: Socket Thread Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|