I noticed the following method in the com.jm3.network.Server class:
[java]public void broadcast( Filter<? super HostedConnection> filter, Message message );[/java]
In the javadoc, it says:
Sends the specified message to all connected clients that match the filter. If no filter is specified then this is the same as calling broadcast(message) and the message will be delivered to all connections.
// Broadcast to connections: conn1, conn2, and conn3
server.broadcast( Filters.in( conn1, conn2, conn3 ), message );
// Broadcast to all connections exception source
server.broadcast( Filters.notEqualTo( source ), message );
But when I look over the code of the com.jm3.network.Filters class, none of the methods is static. (Although they're not using local variables or something connected to a single instance) Even in the description of the class itself is written:
Static utility methods pertaining to Filter instances.
Maybe you've just overlooked or forgotten it - In that case, I hope, this helps you. :)