Sockets and using them...

Era Scarecrow via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 5 23:02:48 PDT 2016


  So I've got a project where I want to create basically a 
decentralized chat program where every program is a host and a 
client. When you connect all connections can go through to route 
the chat to everyone else.

  So to make this work I've looked over the sockets package and I 
don't quite follow how you'd make it so it works a lot like a web 
browser, aka when you get a connection you redirect to a 
different port so you have 1 listening port for new connections 
so it can act as a server. What settings or configuration would I 
need to be able to do that?


More information about the Digitalmars-d-learn mailing list