Results 1 to 9 of 9
Thread: Implementing Client-Server
- 01-25-2012, 11:40 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
- 01-25-2012, 01:24 PM #2
Re: Implementing Client-Server
Please explain why you think this is true.I don't want to use socket concept as it doesn't allows multiple client requests.
- 01-25-2012, 06:47 PM #3
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
Re: Implementing Client-Server
I have read that SOCKET's are used for peer to peer(1 to 1) communication.
plz let me know if I am wrong.
- 01-25-2012, 06:49 PM #4
Re: Implementing Client-Server
I was considering ServerSocket and Socket as both being sockets. One is used by the server and the other by the client.
You can use them for peer to peer or client-server.
- 01-25-2012, 06:56 PM #5
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
Re: Implementing Client-Server
Yes very true but the concern is whether server socket responds to multiple clients at a time??
- 01-25-2012, 06:59 PM #6
Re: Implementing Client-Server
Not at the same time, serially one after the other. I don't know what the delay between connect is, less than a millisecs? or how the underlying software queues incoming requests until the serversocket is available.
Each connect would be passed to a thread to handle. The limit on concurrent clients would be determined by how many threads you can have running concurrently.
- 01-25-2012, 07:04 PM #7
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
Re: Implementing Client-Server
Is there any alternative to socket for this particular problem??
Using http get and post methods used in web applications.
- 01-25-2012, 07:07 PM #8
Re: Implementing Client-Server
The communications of data is handled by sockets. HTTP is a protocol that uses sockets.
The other choice is Datagrams. They use a more primitive type of socket without the care and tending of the TCP layer of software to keep packets in order and ensure delivery.
There are several code examples on the forum. Do a Search for ServerSocket to see some of them.
- 01-25-2012, 07:11 PM #9
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
TCP Two-Client-Server/Client Program not doing what I expected
By xenoepist in forum Advanced JavaReplies: 6Last Post: 01-09-2012, 09:30 PM -
server-client; client sends a username to the server.
By lkcz in forum New To JavaReplies: 2Last Post: 09-24-2010, 11:31 AM -
Datagram Client and Server, client timer question
By saru88 in forum NetworkingReplies: 1Last Post: 10-05-2008, 03:12 PM -
Identify Client in Socket Client Server Application
By masadjie in forum NetworkingReplies: 1Last Post: 12-20-2007, 09:18 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks