Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server and two clients

 
Kamal Chopra
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Coders!!!
I am connecting multiple servers (two) to a single server using UDP .
Server:


Client1:

Client2:

I am specifying same port numbers and other arguments vary except host address but at the end of the day no output appears ...
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you gotten this client/server pair to work? If not, that's what I recommend you start with.
 
Kamal Chopra
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Have you gotten this client/server pair to work? If not, that's what I recommend you start with.

Well, i did implement the single client/server interaction but am implementing it using two clients is my first experience...Any guidance will be appreciated.
Kamal
 
Kamal Chopra
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kamal Chopra wrote:
Ulf Dittmer wrote:Have you gotten this client/server pair to work? If not, that's what I recommend you start with.

Well, i did implement the single client/server interaction but am implementing it using two clients is my first experience...Any guidance will be appreciated.
Kamal


here is my server part:



Client:


Output:
Blank(nothing).
Whats wrong here???
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your server's main method doesn't do anything. Somehow you deleted the line where it actually starts the server.
 
Kamal Chopra
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Your server's main method doesn't do anything. Somehow you deleted the line where it actually starts the server.


Will You Please mention/rectify for me the Particular Statement(s)?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No need to - the correct main method is part of the articles.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic