Re: Need idea about client server connectivity (using ServerSocket and Socket)
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Feb 2006 10:14:00 -0000
JPractitioner wrote:
I have a class that listens to one port using ServerSocket. After
successfully receiving a packet, can i reply back to the client, in a
way that the client do not have to listen for incoming packets.
Do you mean: without the client having to create, and listen on, a ServerSocket
of its own ? If so then the answer is that when a ServerSocket recieves a
connection, that creates a two-way stream between the client and the server.
The server can send data back to the client on the newly created Socket. The
client can read that data from the Socket connection that it opened to the
server.
If you mean something else, then I'm afraid you'll have to clarify what you
mean.
-- chris
.
- Follow-Ups:
- Re: Need idea about client server connectivity (using ServerSocket and Socket)
- From: JPractitioner
- Re: Need idea about client server connectivity (using ServerSocket and Socket)
- References:
- Need idea about client server connectivity (using ServerSocket and Socket)
- From: JPractitioner
- Need idea about client server connectivity (using ServerSocket and Socket)
- Prev by Date: Re: character encoding
- Next by Date: Re: JDK and JRE 1.5
- Previous by thread: Re: Need idea about client server connectivity (using ServerSocket and Socket)
- Next by thread: Re: Need idea about client server connectivity (using ServerSocket and Socket)
- Index(es):
Relevant Pages
|