[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] a question of evbuffer_pullup
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] a question of evbuffer_pullup
- From: simon zhang <hapopen@xxxxxxxxx>
- Date: Fri, 24 Aug 2012 02:35:44 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Thu, 23 Aug 2012 14:34:58 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0K/32MlK5y/kg/LQOmiGr2SoFD6tTFlzLciqAS+qHbg=; b=O/85/xx5JNTy++0dZdZYVpx8Ot+kJ1qBGbKuTIvQiQF4Ih88AA21qXDTrTUKmXffa1 +Ciz2OOQLi0H0YDkHX1WSDEGRka2dPv84iXAo7ndhDD62GIzk85GVRu1nX8IdvzsqyQN +Jd24TZFdw7vvSDImD0v3xTXcCK40IojEeuLJfyAXYYtt3KJq/sOaZP20TrYfJEiEmEm PKb8oWIbxbMoJJLOBYE3D2IDo6GXdBgW/w+Ll8k9hjTX/jOLMlfTC4AB0u0ZE9xsgoyE gB8A5fhptpoHspD3ib9xGOHxmiYcP5ZwAEhs+7zi1385Wp6raUJ8f+xYCw9VKns7hQbJ MgQw==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
I don't understand “must first ensure that the front of the buffer
really is contiguous”.
I can get 100 bytes from evbuffer by evbuffer_pullup() or evbuffer_remove().
evbuffer_pullup():get some contiguous data.
evbuffer_remove():get some discontinuous data???
Some discontinuous data??Why we need this.We can't handle some
discontinuous data.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.