Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

not able to connect...

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

in a client/server application, i can connect many client to the server


Client class



now i try to connect to another server after 10 second...
i'm able to connect to it... but the server don't respond...


Server main class (commnet server 4444 to test my client...)


server code


ServerThread class


i start my server:

server run, wait connecting....

i start my client:

try to connect to 127.0.0.1 to portt 4444
Entree: Try: 1
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 2
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 3
try to connect to 127.0.0.1 to portt 4444
Entree: Tentative : 4
Essai de Trya� l'hote 127.0.0.1 au port 4444
Entree: Tentative : 5
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 6
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 7
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 8
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 9
try to connect to 127.0.0.1 to portt 4444
Entree: Try: 10
try to connect to a new server...
Entree:

i type some text:fsdfsf

nothing is displayed on client and server side...

any idea?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic