Hello!

I'm running WeIRCd server locally and I have made an commandline windows IRC Client under C.

But now I want to expand it so I can send files to clients directly via DCC in P2P manner.

But I don't know the right way of starting this.

On every client should I constantly have socket listening if someone wants to send a file?

And how do I implement the P2P part, I'm hopelessy lost?

I found some interesting links but don't supply practical information that I am looking for.
-http://www.kvirc.net/doc/cmd_dcc.send.html
-http://www.kvirc.net/doc/doc_dcc_connection.html
-http://www.user-com.undernet.org/documents/ctcpdcc.txt
-http://www.irchelp.org/irchelp/rfc/ctcpspec.html

Kind regards,
Vince