File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Client Server communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Client Server communication" Watch "Client Server communication" New topic
Author

Client Server communication

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
Hi,

I am new to socket programming, and i want to write one program for client server socket communication.

I want to establish connection between two Machine lets say Computer A and Computer B both are in LAN.

Computer A Opens server socket, and wait for a particular port for client to send request.

Now computer B(Client) sends request to A, A accepts the connection. and send below information to computer B

- Message per Seconds (message/sec computer b can send to computer a)
- length of the message in byte, the computer b should send the exact length of message to computer a and when computer a response should be of the same length, content of the message cam be anything.

Now how do i handle the scenario of message per second ???


Jigar Naik


Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3370
    
    9
What have you tried so far?
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
I am still thinking on it.

I think Thread is the answer to my question but still i am not sure. I am confused.
 
Don't get me started about those stupid light bulbs.
 
subject: Client Server communication
 
Similar Threads
Server/Client simple doubt
Generating KeyStrokes
socket programming on 2 ports
socket programming : connect server to client
Forward Socket to another server socket