void _init(NetworkInterface networkInterface) { _networkInterface = networkInterface; _buffer = new byte[KBEngineApp.app.getInitArgs().RECV_BUFFER_MAX]; messageReader = new MessageReader(); }
public void reset() { if(valid()) close(); socket_ = null; msgReader = new MessageReader(); packets_.Clear(); TimeoutObject.Set(); }