You can't just take the networking code, you can use it as a decent example as how a threading, mutex, multiple connection application works and such.. but it wouldn't be worth trying to port it
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
|