I want to implement a P2P aplication. A main server is running and gets clients' requests. When a client searches for something he must connect to another client to get the information he wants.
How can I implement something like this?
The main Server which fires that event and the client class that can be converted to a Server at runtime??