With the first steps on JAVA, my first program was an IRC SERVER. Subsequently I have evolved it and it has become the base to realize a SERVER for webchat.
I developed for a couple of years in JAVA and then abandoned the language.
It's been over 14 years since then. Many friends have suggested me to use B4J (development usually in B4A) ... and I wanted to try and see if it's really so easy to do B4J trying to redo an IRC SERVER.
Well, I did it and I attach it to the bottom of this post. Also find a version in B4A and I will have time even a Client IRC
For the moment I tested it with the very famous MIRC client.
Obviously, it does not have all the commands, it's just the basic structure and it allows you to access, enter channels (or rooms) and chat. It does not log in with a password, it supports all IRC commands. But I'm sure all of you are able to expand this project.
Good fun SD
Release 0.03
Note: For a better and more stable server, you would have to create a class that handles every single connection. When a user connects to the socket, a new instance of the class is created that will handle and process messages and commands.
I developed for a couple of years in JAVA and then abandoned the language.
It's been over 14 years since then. Many friends have suggested me to use B4J (development usually in B4A) ... and I wanted to try and see if it's really so easy to do B4J trying to redo an IRC SERVER.
Well, I did it and I attach it to the bottom of this post. Also find a version in B4A and I will have time even a Client IRC
For the moment I tested it with the very famous MIRC client.
Obviously, it does not have all the commands, it's just the basic structure and it allows you to access, enter channels (or rooms) and chat. It does not log in with a password, it supports all IRC commands. But I'm sure all of you are able to expand this project.
Good fun SD
Release 0.03
Note: For a better and more stable server, you would have to create a class that handles every single connection. When a user connects to the socket, a new instance of the class is created that will handle and process messages and commands.
Attachments
Last edited: