In a desktop application I may be developing I am wanting to embed a very simple P2P messenging system. That is to say, I don't want to use a server to transmit the messages. So I need a way to simply broadcast an "I am here" signal on a specified port and for all the other clients to be listening for that message on said port. So for an example;
Beth runs the application. She sends a signal saying she is here. No one else is running the app, so it just gets dropped. John then runs the app and sends the "I am here" signal. Beth's client picks up that signal and says, "Ok, John is here with xxx.xxx.xxx.xxx IP address. I'll send him a signal so he knows I am here too." John recieves it so John and Beth can now communicate through the application P2P.
Can someone guide me in the right direction. I really haven't done much socket programming. I have written a simple client server model like I spoke of so I am familiar with the API. But I just don't know what I need to do what I want. Thanks.
BTW - This is not a file sharing application or anything like that. I just need a non Server/Client model chat system. And this will all be intranet.