Hello,
This is not a feature request but just a question. I'd like to add support for SILC (Secure Internet Live Conferencing) protocol with phpfreechat. I haven't looked at the pfc code much yet, but the SILC side would be using a client called SilcImproved (si) which utilizes FIFOs for very simple filesystem based access to the SILC network. Si works as follows:
After connecting to a server with si command, the filesystem hierarchy is created:
server.foo.bar/
server.foo.bar/in
server.foo.bar/out
The "in" file is FIFO and anything wrirtten into it (assuming it's valid data) will be sent to the SILC server. So for example writing "/join foobar" into in would join channel foobar in the SILC server. Anything the server outputs will appear in the "out" file, which can be read from there. So after joining foobar the filesystem is as follows:
server.foo.bar/
server.foo.bar/in
server.foo.bar/out
server.foo.bar/foobar/
server.foo.bar/foobar/in
server.foo.bar/foobar/out
Again, anything written to "in" file in foobar/ dir would send the message to the channel foobar and any messages received on the channel can be read from "out" file. Works similarly with private messages.
So, the question is, not having looked at pfc code much yet, how hard would it to add support for this, either by modifying the pfc code or by adding a new container. Basicly what is required is that the commands user write will be written into the "in" files, as most commands pfc use, si use also. It would also be nice to be able to send any SILC specific commands user write as is into the "in". Other thing that is required obviously is support for the filesystem hierarchy, and the ability to read the "out" file that will receive the messages (it's normal file which will grow in size when new message is written into it).
Pekka