How to determine active socket connection count?
neilson9
neil at liquidlabs.co.uk
Thu Jul 23 10:28:31 EDT 2009
Thanks trustin, my Server does something like,
DefaultChannelGroup allChannels = new
DefaultChannelGroup("netty-receiver");
Channel bind = bootstrap.bind(new InetSocketAddress(endPoint.getPort()));
allChannels.add(bind);
however allChannels.size() is always 1 -(when I have many active
connections)...
Cheers Neil.
On Thu, Jul 23, 2009 at 10:07 AM, Trustin Lee (via Nabble) <
ml-user+57722-1440662075 at n2.nabble.com<ml-user%2B57722-1440662075 at n2.nabble.com>
> wrote:
> Hi Neil,
>
> Create a ChannelGroup and add the Channels to it then you can get the
> number of established channels.
>
> HTH,
> Trustin
>
> On 07/23/2009 05:12 PM, neilson9 wrote:
> > Hi,
> > Im trying to determine the 'Established' socket connection/channel count
> a
> > NioServerSocketChannel.
> >
> > Is there a way of doing this?
> >
> > I looked through the API but havent had any luck so far
> >
> > Cheers Neil.
>
> _______________________________________________
> netty-users mailing list
> netty-users at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3308378&i=0>
> https://lists.jboss.org/mailman/listinfo/netty-users
> — Trustin Lee, http://gleamynode.net/
>
>
> ------------------------------
> View message @
> http://n2.nabble.com/How-to-determine-active-socket-connection-count--tp3308167p3308378.html
> To unsubscribe from How to determine active socket connection count?, click
> here< (link removed) =>.
>
>
>
--
View this message in context: http://n2.nabble.com/How-to-determine-active-socket-connection-count--tp3308167p3309906.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list