Name: Anonymous 2007-08-02 13:15 ID:ihmWLgE7
Hello,
For the few of you who are unaware of what a BNCd is, read this: http://en.wikipedia.org/wiki/Bouncer_%28networking%29#IRC_use
I know many of you will have access to unix(like) shell account somewhere on the web, some of you are actually running unix. My target audience is the former. Most readily available BNC programs are written in C, and the majority of them require compilation and execution. Popular ones include 'psyBNC' and 'ZNC' Many shell accounts do not allow their users the privilage of running processes such as BNC daemons. That is why I want to create I want to create a barebones BNCd, but create it using a widely accessable interpreted language, like Perl, PHP, Python, etc. This script could be executed in screen detaching software on the shell account and left to handle any incoming traffic, thereby turning your shell account(s) into fully functional IRC proxies.
The fundementals of the actual script are pretty basic. You're just creating a two way 'tunnel' for some IRC traffic: one socket connected to an IRC server and a second socket binded to a port and listening for connections and data. Any data recieved from the first socket will be written to the second, while any data recieved from the second socket will be written to the first. Seemingly simple.
While PHP and Python have pretty good socket libaries, I have been unable to successful create a satisfactory daemon. I have managed to code a somewhat rudimentary one in PHP, but the downside is that it's just deadly slow.
Would any EXPERT PROGRAMMERS be able to offer some advice or even some code?
Thanks.
For the few of you who are unaware of what a BNCd is, read this: http://en.wikipedia.org/wiki/Bouncer_%28networking%29#IRC_use
I know many of you will have access to unix(like) shell account somewhere on the web, some of you are actually running unix. My target audience is the former. Most readily available BNC programs are written in C, and the majority of them require compilation and execution. Popular ones include 'psyBNC' and 'ZNC' Many shell accounts do not allow their users the privilage of running processes such as BNC daemons. That is why I want to create I want to create a barebones BNCd, but create it using a widely accessable interpreted language, like Perl, PHP, Python, etc. This script could be executed in screen detaching software on the shell account and left to handle any incoming traffic, thereby turning your shell account(s) into fully functional IRC proxies.
The fundementals of the actual script are pretty basic. You're just creating a two way 'tunnel' for some IRC traffic: one socket connected to an IRC server and a second socket binded to a port and listening for connections and data. Any data recieved from the first socket will be written to the second, while any data recieved from the second socket will be written to the first. Seemingly simple.
While PHP and Python have pretty good socket libaries, I have been unable to successful create a satisfactory daemon. I have managed to code a somewhat rudimentary one in PHP, but the downside is that it's just deadly slow.
Would any EXPERT PROGRAMMERS be able to offer some advice or even some code?
Thanks.