i need make tcp based decentralised chat app local network. decentralised mean there no central server. each entity on network should have server/client architecture. when app starts should check user online ( running app ). question how can check that? can trying connect via connect() function socket library? i'm new programming, socket programing, if it's dumb question sorry in advance.
you should study how other decentralized applications this. there lots of techniques.
each instance of application should, part of server functionality, track addresses of other instances of application. each instance should, part of client functionality, keep track of few instances can connect to. prefer instances have been around long time.
the software should include list of servers have been running long time , expected typically available. may wish include fallback method such dns, maintained willing keep list of well-known servers offering access through well-known port. fallback method can irc or http.
Comments
Post a Comment