Ok, I’m posting this topic in this category because it seems that we can’t post into the Project Proposal without sending an email to the admin…
So here it is.
I’ve started to make a little project named Jenn (Java Easy Nio Network). Its aim is to make network development easier for people who don’t want to bother with java networking classes. I know that some similar projects already exists but none of them are really easy to use. There will be two main classes. Here is a little sheme of those classes (no details, only main methods, I’ve hidden other methods) :
public abstract class SBServer
{
/* Init the server (declinned in three methods). */
public boolean init();
/* Start the server. */
public void start();
/* What to do on new client connection accepted ? */
public abstract void onAccept();
/* What to do when a message is received from a client ? */
public abstract void onReceive();
/* Send a message to a client. */
public void send();
}
So this was an overview of the server architecture. As you can see, users will only have to extend onAccept() and onReceive() methods and everything is done for the server ! Note : I’ve remove the parameters in all methods…
Now, the client :
public abstract class SBClient
{
/* Connect to a server. */
public boolean connect();
/* What to do when a message is received from the server ? */
public abstract void onReceive();
/* Send a message to the server. */
public void send();
}
Et voilà…
The thing will make extensive use of Nio to maximize performances and to make the server non-blocking. Data tranfert will be made in byte, I intend to add compression when the whole lib will be fonctionnal, MySQL support (once again, designed to be very easy to use for the user), and network security.
If you’ve got some time, tell me if this project interest you or if you think it’s a good idea or not (if not, please explain why :)).
Comments are welcome !
Chman