{
public static void initialize( IoSession session ) throws SocketException
{
if( session instanceof SocketSession )
{
SocketSession ss = ( SocketSession ) session;
ss.setReuseAddress( true );
ss.setKeepAlive( true );
}
else if( session instanceof DatagramSession )
{
DatagramSession ds = ( DatagramSession ) session;
ds.setReuseAddress( true );