users@grizzly.java.net

Track active clients using Connection or FilterChainContext

From: LongkerDandy <longkerdandy_at_gmail.com>
Date: Fri, 13 Jun 2014 08:59:53 +0800

Hi

I have a TCP serevr and I want to track all active clients connection,
so clients can send message to each other.
For now I'm using Grizzly's util DataStructures to maintain client'id and
FilterChainContext in a map.
I wondered:

1. Should using Connection instead of FilterChainContext. It seems more
lightweight and Grizzly's auth sample is using Connection.

2. If a send message via Connection.write(...), will it still trigger
filtter chain correctly?


Regards
LongkerDandy