nio + socket example added