test socketUtil.write