Okay, now i found a bug. Clients cant send events.I´m 100% sure it´s a bug, because because this code works with the old version.
Here is an example:

Code:
#include <acknex.h>
#include "anet.h"

void conn(var sender, STRING* msg, var length)
{
	error("cl. connected");
}
void dconn(var sender, STRING* msg, var length)
{
	error("cl. disconnected");
}
void clevent(var sender, STRING* msg, var length)
{
	error("client send event");
}
void sendev()
{
	enet_clsend_event(25,"",0,BROADCAST);
}
void main()
{
	wait(3);
	enet_init();
	
	enet_svset_event(EVENT_DISCONNECTED, dconn);
	enet_svset_event(EVENT_CONNECTED, conn);
	enet_svset_event(25, clevent);
	
	while(!key_s&&!key_c)wait(1);
	if(key_s)
	enet_init_server(2300, 4, "");
	if(key_c)
	enet_init_client("localhost",2300,"");
	
	while(enet_get_connection()==NO_CONNECTION)wait(1);
	if(enet_get_connection()==SERVER_MODE)
	error("server started");
	if(enet_get_connection()==CLIENT_MODE)
	error("client started");
	on_a=sendev;
	while(1)
	{
		
		if(enet_get_connection()==CLIENT_SERVER_MODE)
		draw_text("cl/srv",0,0,COLOR_WHITE);
		if(enet_get_connection()==CLIENT_MODE)
		draw_text("client",0,0,COLOR_WHITE);
		if(enet_get_connection()==SERVER_MODE)
		draw_text("server",0,0,COLOR_WHITE);
		if(enet_get_connection()==NO_CONNECTION)
		draw_text("no conn.",0,0,COLOR_WHITE);
		
		wait(1);
	}
}



Open two windows. At the first window press s for a server. At the other one press c for client. You´ll recieve a message from server, that a client connected.
Then as client press "a" to send an event.
Nothing happens.
But with old version you´ll get the message as expected.
To use this code with the other version you have to set the events in "".
Hope it helps to improve your üroduct laugh


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de