mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 이희승 "(Trustin Lee)" <trus...@gmail.com>
Subject Re: doubt Mina
Date Wed, 13 Feb 2008 05:06:02 GMT
2008-01-28 (월), 10:47 -0400, Brenno Hayden 쓰시길:
> Hello ,
>     i have same doubt..
>  -  How can I tell if the connection is udp or tcp?

In 1.x, you can use IoSession.getTransportType().  In 2.x, you can
simply use 'instanceof SocketSession' or 'instanceof DatagramSession'.

-- 
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message