a example about nio. thinking why server must handler client event.