• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic