redid network bit using nio