Caleb Gray

Engine Programmer

Home>Research>Serious Business> Infinity Network Engine
Infinity Network Engine

The Infinity Network Engine is a simple but powerful event oriented, UDP based, server-client networking engine. Its event oriented design allows programmers to focus on writing functionality, rather than advanced and difficult networking code.The Infinity Network Engine has been written to be very portable and can be compiled inline as part of a project or externally as a library.

// Events
void on_connect() {
 printf("on_connect()\n");
}
void on_close() {
 printf("on_close()\n");
}
void on_send(char *message) {
 printf("on_send(%s)\n", message);
}
void on_receive(char *message, int messageLen, struct sockaddr_storage *from) {
 printf("on_receive(%s)\n", message);
}

 

// Set Events
infinityNet = new infinityNet();
infinityNet->OnConnect = &on_connect;
infinityNet->OnClose = &on_close;
infinityNet->OnSend = &on_send;
infinityNet->OnReceive = &on_receive;