• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Messenger Client to Client Socket Communication (Not via Server)

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I need to make a messenger where a client can communicate with another client directly.. (not via the server)

i.e any client can communicate with any other client privately just like yahoo messenger

there are lots of example of server/client pair socket communication & this is not what i am looking for

so i am puzzled how to do that.. do i need to make each user both client & server or what??

please help..
 
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

technically there always is a client and a server when TCP is used. Conceptually anything is possible that doesn't conflict with that (central server, no central server, direct connection after server mediated contact, ...).

Kai
 
Olga Flasza
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kai, Thanks for your answer. but as you may assume I am a novice in networking.. can you please give some link from where I can start..
I am mainly interested about no central server part

Thanks in advance
 
Kai Witte
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Networking basics

TCP

TCP with Java

I don't know about a source that sums up communication concepts without a central server. The existing concepts are all very different.
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic