• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Client Server communication

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ???

 
Saloon Keeper
Posts: 15510
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What have you tried so far?
 
Jigar Naik
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am still thinking on it.

I think Thread is the answer to my question but still i am not sure. I am confused.
reply
    Bookmark Topic Watch Topic
  • New Topic