From libssh2-devel-bounces@cool.haxx.se  Thu Feb  1 04:58:19 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id w113vdZE019974;
	Thu, 1 Feb 2018 04:58:09 +0100
Received: from m15-111.126.com (m15-111.126.com [220.181.15.111])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id w113vOKI019787
 for <libssh2-devel@cool.haxx.se>; Thu, 1 Feb 2018 04:57:29 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com;
 s=s110527; h=Date:From:Subject:Mime-Version:Message-ID; bh=xby8W
 NA6T4sMmRa+uG6XXVJ9dSqwe2Zpz50jX04tgb4=; b=VrBalzaN2WI5p0UvlgdxA
 avoM1YuCMtOK/VJPO732oE390vMv6qApLMG2fuvzMx0bn8xO1XFDDvKm0ggeOzKw
 tTPXUTNpuBI87ud13V2A2VAd60EhP1DrZphEnbrbuJ1DpVPb3ScBN0GLidyMubp2
 bK8HPh/060c9wgqPPDiOgA=
Received: from HUGELANDTECH (unknown [111.59.89.2])
 by smtp1 (Coremail) with SMTP id C8mowAAnFq8akHJaYQpqBg--.60014S2;
 Thu, 01 Feb 2018 11:57:16 +0800 (CST)
Date: Thu, 1 Feb 2018 11:57:11 +0800
From: "Samuel Zhao" <samuelzhao@126.com>
To: libssh2-devel <libssh2-devel@cool.haxx.se>
Subject: Question about function parameter of libssh2_sftp_readdir_ex
X-Priority: 3
X-Has-Attach: no
X-Mailer: Foxmail 7, 2, 7, 21[cn]
Mime-Version: 1.0
Message-ID: <201802011157089096435@126.com>
X-CM-TRANSID: C8mowAAnFq8akHJaYQpqBg--.60014S2
X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73
 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUOWlvUUUUU
X-Originating-IP: [111.59.89.2]
X-CM-SenderInfo: 5vdp3v5o2kt0a6rslhhfrp/1tbibQXfO1pD31hzlQABs1
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0572979346=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

This is a multi-part message in MIME format.

--===============0572979346==
Content-Type: multipart/alternative;
	boundary="----=_001_NextPart750478341251_=----"

This is a multi-part message in MIME format.

------=_001_NextPart750478341251_=----
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: base64

SGkgYWxsLA0KSGVyZSBpcyB0aGUgZnVuY3Rpb246DQppbnQgbGlic3NoMl9zZnRwX3JlYWRkaXJf
ZXgoTElCU1NIMl9TRlRQX0hBTkRMRSAqaGFuZGxlLCAgIGNoYXIgKmJ1ZmZlciwgc2l6ZV90IGJ1
ZmZlcl9tYXhsZW4sICAgY2hhciAqbG9uZ2VudHJ5LCBzaXplX3QgbG9uZ2VudHJ5X21heGxlbiwg
ICBMSUJTU0gyX1NGVFBfQVRUUklCVVRFUyAqYXR0cnMpOw0KRnJvbSBtYW4gcGFnZSBkZXNjcmlw
dGlvbiwgYnVmZmVyIGFuZCBsb25nZW50cnkgc2VlbSB0byBib3RoIHJlY3YgdGhlIGZpbGUgbmFt
ZSBmcm9tIGZ0cCBzZXJ2ZXIuIFdoYXQncyB0aGUgZGlmZmVyZW5jZSBiZXR3ZWVuIHRoZW0/DQpJ
ZiBJIHdhbnQgdG8gZ2V0IGEgZmlsZSBsaXN0IGJ5ICdscycgY29tbWFuZCBpbiBmdHAgY2xpZW50
LCB3aGljaCBvbmUgc2hvdWxkIEkgcmVhZCBmaWxlIG5hbWUgZnJvbT8NCg0KVGhhbmtzIGZvciBh
bnkgaGVscC4NCiANCg0KDQpTYW11ZWwgWmhhbw0K

------=_001_NextPart750478341251_=----
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charse=
t=3Dus-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; f=
ont-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size=
: 10.5pt; color: rgb(0, 0, 0); line-height: 1.5; font-family: ??; }</style=
></head><body>=0A<div><span></span>Hi all,</div><div>Here is the function:=
</div><div><span style=3D"font-family: sans-serif; font-size: medium; orph=
ans: 2; white-space: pre; widows: 2;">int libssh2_sftp_readdir_ex(LIBSSH2_=
SFTP_HANDLE *handle,=0A &nbsp;                       char *buffer, size_t =
buffer_maxlen,=0A &nbsp;                       char *longentry, size_t lon=
gentry_maxlen,=0A &nbsp;                       LIBSSH2_SFTP_ATTRIBUTES *at=
trs);</span></div><div style=3D"orphans: 2; widows: 2;"><font face=3D"sans=
-serif" size=3D"3"><span style=3D"line-height: 24px; white-space: pre;">Fr=
om man page description, buffer and longentry seem to both recv the file n=
ame from ftp server. What's the difference between them?</span></font></di=
v><div style=3D"orphans: 2; widows: 2;"><font face=3D"sans-serif" size=3D"=
3"><span style=3D"line-height: 24px; white-space: pre;">If I want to get a=
 file list by 'ls' command in ftp client, which one should I read file nam=
e from?</span></font></div><div style=3D"orphans: 2; widows: 2;"><font fac=
e=3D"sans-serif" size=3D"3"><span style=3D"line-height: 24px; white-space:=
 pre;"><br></span></font></div><div style=3D"orphans: 2; widows: 2;"><font=
 face=3D"sans-serif" size=3D"3"><span style=3D"line-height: 24px; white-sp=
ace: pre;">Thanks for any help.</span></font></div>=0A<div>&nbsp;</div>=0A=
<hr style=3D"WIDTH: 210px; HEIGHT: 1px" align=3D"left" color=3D"#b5c4df" s=
ize=3D"1">=0A<div><span>Samuel Zhao</span></div>=0A</body></html>
------=_001_NextPart750478341251_=------


--===============0572979346==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============0572979346==--

From libssh2-devel-bounces@cool.haxx.se  Thu Feb  1 19:51:30 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id w11Iougn025990;
	Thu, 1 Feb 2018 19:51:22 +0100
Received: from mail.panic.com (mail.panic.com [38.103.165.3])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id w11IoqFS025782
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 1 Feb 2018 19:50:54 +0100
Received: from [10.0.0.214] (unknown [38.103.165.36])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.panic.com (Postfix) with ESMTPSA id B1534A024E;
 Thu,  1 Feb 2018 10:50:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=panic.com; s=dkim;
 t=1517511047; bh=XhfkEcKrtVRc0bcKbgJiky8PgJQkpEvZYAiMsKR7Iew=;
 h=Subject:From:In-Reply-To:Date:Cc:References:To;
 b=4tevDabdZ5N/7jOwTW1a4Eflq8KNH9qhyxOfxQtuJNFAYHQj0uNhfSeexRFFebK/m
 Pwy3d1YwYbyJMffrEjGwKADrfmQmNZwjUpWwFBMxy3B702Hg7JAvcjkozI7K1zplOm
 C3gpeJ6kAD91uw+0D0OzKHV7o5jGBMlug7y0lRUs=
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Subject: Re: Question about function parameter of libssh2_sftp_readdir_ex
From: Will Cosgrove <will@panic.com>
X-Priority: 3
In-Reply-To: <201802011157089096435@126.com>
Date: Thu, 1 Feb 2018 10:50:47 -0800
Message-Id: <FC0DBA24-1A5F-4DF1-91A0-BAC1EEE7A7B6@panic.com>
References: <201802011157089096435@126.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.3445.5.20)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Cc: samuelzhao@126.com
Content-Type: multipart/mixed; boundary="===============1430070116=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>


--===============1430070116==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_77821C57-2493-429F-9EEC-6529EDFB5AD7"


--Apple-Mail=_77821C57-2493-429F-9EEC-6529EDFB5AD7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi Samuel,
Longentry is the entire unix style entry for the item, such as:

"-rw-------    1 test test      636 Jan  3 12:20 file.txt"=09

Buffer is simply the file name.  Use the one that will work for your =
use-case.

Will


> On Jan 31, 2018, at 7:57 PM, Samuel Zhao <samuelzhao@126.com> wrote:
>=20
> Hi all,
> Here is the function:
> int libssh2_sftp_readdir_ex(LIBSSH2_SFTP_HANDLE *handle,
>                          char *buffer, size_t buffer_maxlen,
>                          char *longentry, size_t longentry_maxlen,
>                          LIBSSH2_SFTP_ATTRIBUTES *attrs);
> =46rom man page description, buffer and longentry seem to both recv =
the file name from ftp server. What's the difference between them?
> If I want to get a file list by 'ls' command in ftp client, which one =
should I read file name from?
>=20
> Thanks for any help.
> =20
> Samuel Zhao
> _______________________________________________
> libssh2-devel =
https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel =
<https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>

--Apple-Mail=_77821C57-2493-429F-9EEC-6529EDFB5AD7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">Hi Samuel,</div><div class=3D"">Longentry is the entire unix =
style entry for the item, such as:</div><div class=3D""><br =
class=3D""></div><div class=3D"">"-rw------- &nbsp; &nbsp;1 test test =
&nbsp; &nbsp; &nbsp;636 Jan &nbsp;3 12:20 file.txt"<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span></div><div class=3D""><br class=3D""></div><div class=3D"">Buffer =
is simply the file name. &nbsp;Use the one that will work for your =
use-case.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Will</div><br class=3D""><div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Jan 31, 2018, at 7:57 PM, =
Samuel Zhao &lt;<a href=3D"mailto:samuelzhao@126.com" =
class=3D"">samuelzhao@126.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div =
style=3D"font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""><span class=3D""></span>Hi all,</div><div style=3D"font-family:=
 Helvetica; font-size: 14px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D"">Here is =
the function:</div><div style=3D"font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
sans-serif; font-size: 12px; orphans: 2; white-space: pre; widows: 2;" =
class=3D"">int libssh2_sftp_readdir_ex(LIBSSH2_SFTP_HANDLE *handle,
 &nbsp;                       char *buffer, size_t buffer_maxlen,
 &nbsp;                       char *longentry, size_t longentry_maxlen,
 &nbsp;                       LIBSSH2_SFTP_ATTRIBUTES =
*attrs);</span></div><div style=3D"font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; orphans: 2; widows: 2;" class=3D""><font =
face=3D"sans-serif" size=3D"3" class=3D""><span style=3D"line-height: =
24px; white-space: pre;" class=3D"">=46rom man page description, buffer =
and longentry seem to both recv the file name from ftp server. What's =
the difference between them?</span></font></div><div style=3D"font-family:=
 Helvetica; font-size: 14px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: 2; widows: =
2;" class=3D""><font face=3D"sans-serif" size=3D"3" class=3D""><span =
style=3D"line-height: 24px; white-space: pre;" class=3D"">If I want to =
get a file list by 'ls' command in ftp client, which one should I read =
file name from?</span></font></div><div style=3D"font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: 2; widows: =
2;" class=3D""><font face=3D"sans-serif" size=3D"3" class=3D""><span =
style=3D"line-height: 24px; white-space: pre;" class=3D""><br =
class=3D""></span></font></div><div style=3D"font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: 2; widows: =
2;" class=3D""><font face=3D"sans-serif" size=3D"3" class=3D""><span =
style=3D"line-height: 24px; white-space: pre;" class=3D"">Thanks for any =
help.</span></font></div><div style=3D"font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D"">&nbsp;</div><hr align=3D"left" size=3D"1" style=3D"font-family:=
 Helvetica; font-size: 14px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; width: 210px; height: =
1px;" class=3D""><div style=3D"font-family: Helvetica; font-size: 14px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span class=3D"">Samuel =
Zhao</span></div><span style=3D"font-family: Helvetica; font-size: 14px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" =
class=3D"">_______________________________________________</span><br =
style=3D"font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""><span style=3D"font-family: Helvetica; font-size: 14px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">libssh2-devel<span =
class=3D"Apple-converted-space">&nbsp;</span></span><a =
href=3D"https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel" =
style=3D"font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" =
class=3D"">https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel</a>=
</div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_77821C57-2493-429F-9EEC-6529EDFB5AD7--

--===============1430070116==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============1430070116==--

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 16 16:02:14 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id w1GF1XUU014801;
	Fri, 16 Feb 2018 16:02:05 +0100
Received: from sonic306-20.consmr.mail.ir2.yahoo.com
 (sonic306-20.consmr.mail.ir2.yahoo.com [77.238.176.206])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id w1GF1WGA014740
 for <libssh2-devel@cool.haxx.se>; Fri, 16 Feb 2018 16:01:32 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048;
 t=1518793281; bh=u1zVttk/i0+ayVEyDfx4ydMTAB3Ok20Qf2JYVTP8Lbg=;
 h=Date:From:To:Subject:References:From:Subject;
 b=cEk3OYOsWcv1lFtmCkHdq7hZYZ6PHCbErt/fguf9xzxOFIMuoTbb/aJx34ZiR2WWPuNEgMEffa347NGKG6GBN19L5YziBfIq23aBGpuWb3WCERlPUhJnr9TiLc/KgDkh8tyJttqL1oB3znOyJLmAxBK1kZSy7ZEoPD5mTBJDOwnC6wbOC96gJTctZlix4nyQgEWSTZ+IXfz+FQen+ktJdcFBiT6HyALB/IBnEuLPo/SugxmLbFw9eH1J1KA/rkBzZw2Bj87GtK7IGD549fjYdCUzNGu8Ty4iGv+XYFCRcb4fmo2uX0KDjinaPTym2uAcLVVIvr8751F3DvXcpJEGsA==
X-YMail-OSG: gCrp9OQVM1my0pFsP3vkIpxVpQdAuV4ev8dlZjgobY84rEhXJyVpCPX2q4qEnE2
 QaovXz5U_8M2OLNGuhDMsPIcvy6ZH6ERZuTY1QZO7oLkH3KSr4ZmEtqL9_rOX.qms2QK6b3mDUoz
 yLfgSUsSJF0M6wCpVMRPU5oUEi6c5fl1GM2mhTUfnv_ZIdiFOI0C.Ail8GCrlfBL_RXjx_5Dvotr
 VvxGuT0b6wZ4bA7yiJdM7ElzpJDXcz_TrS.fRp8HhW_nevzuVE6QXbt_cH8SFNfXi5ZS9iuEjKlh
 bjuvnCxL.uRM5F75eo9e.x3UifmdhCWZ9ln8qjC_cpJ8sst2DTBJgddPeUdMdjI1csyTX1FLg9Af
 b9RW3rs1DkTjSy2.5DacxrxUNfKqMGxVeQoAbtS6_wIn9t6ZJ32U8oMxJF3SkG_t8yRcRBUjMCRp
 pjHZ.BnZWLCXdxlJvjMNcLANKIlXflz8DygHF3NqD8y9qB.s2W0PntohnHg--
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic306.consmr.mail.ir2.yahoo.com with HTTP; Fri, 16 Feb 2018 15:01:21 +0000
Date: Fri, 16 Feb 2018 15:01:10 +0000 (UTC)
From: liverneaux jeremie <liverneauxj@yahoo.fr>
To: libssh2-devel@cool.haxx.se
Message-ID: <2037889992.3709768.1518793270161@mail.yahoo.com>
Subject: How to get information on the remote connected application when
 using reverse SSH
MIME-Version: 1.0
References: <2037889992.3709768.1518793270161.ref@mail.yahoo.com>
X-Mailer: WebService/1.1.11419 YMailNorrin Mozilla/5.0 (Windows NT 6.1;
 WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132
 Safari/537.36
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0426688926=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0426688926==
Content-Type: multipart/alternative; 
	boundary="----=_Part_3709767_1262296834.1518793270160"

------=_Part_3709767_1262296834.1518793270160
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello all,
I'm using the libssh2 to create a reverse tunnel SSH.
With the=C2=A0libssh2_channel_forward_listen_ex i will get the port that is=
 allocated by the SSH server for the reverse tunnel.
Then when a connection is accepted with the libssh2_channel_forward_accept =
function, is there a way to get information (ip address / port)=C2=A0on the=
 application that is currently using the reverse tunnel channel ?
Thanks you in advance for your answer.
Jeremie
------=_Part_3709767_1262296834.1518793270160
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Hello all,</div><div><br></div><div>I'm using the libssh2 to create a reverse tunnel SSH.</div><div><br></div><div>With the&nbsp;libssh2_channel_forward_listen_ex i will get the port that is allocated by the SSH server for the reverse tunnel.</div><div><br></div><div>Then when a connection is accepted with the libssh2_channel_forward_accept function, is there a way to get information <span style="color: rgb(0, 0, 0); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">(ip address / port)&nbsp;</span>on the application that is currently using the reverse tunnel channel ?</div><div><br></div><div>Thanks you in advance for your answer.</div><div><br></div><div>Jeremie</div></div></body></html>
------=_Part_3709767_1262296834.1518793270160--

--===============0426688926==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============0426688926==--

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 20 12:24:53 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id w1KBOHLQ007720;
	Tue, 20 Feb 2018 12:24:45 +0100
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with SMTP id w1KBOE99007666
 for <libssh2-devel@cool.haxx.se>; Tue, 20 Feb 2018 12:24:14 +0100
Received: (qmail 23953 invoked by uid 99); 20 Feb 2018 11:24:13 -0000
Received: from mail-relay.apache.org (HELO mailrelay2-lw-us.apache.org)
 (207.244.88.137)
 by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Feb 2018 11:24:13 +0000
Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com
 [209.85.215.51]) by mailrelay2-lw-us.apache.org (ASF Mail Server at
 mailrelay2-lw-us.apache.org) with ESMTPSA id 702EE340
 for <libssh2-devel@cool.haxx.se>; Tue, 20 Feb 2018 11:24:12 +0000 (UTC)
Received: by mail-lf0-f51.google.com with SMTP id f136so3647854lff.8
 for <libssh2-devel@cool.haxx.se>; Tue, 20 Feb 2018 03:24:11 -0800 (PST)
X-Gm-Message-State: APf1xPBmD3UZcCeQ7OaMW+jj5dgG3F3J+2j/MOFKCmQ2nmQ4MxijIcmA
 BoRRfEgrw798hWhlTt+pf3jmysaeVJ+EEbcydxs=
X-Google-Smtp-Source: AH8x2240XMzWRwtNxKrL8qwVfj34WvIGL4F4JHjDhAOt/sBVq9ijUwi+xhOzUHBs/QvKmodaWX45mu63oX7/HQsnY98=
X-Received: by 10.25.84.207 with SMTP id b76mr3237690lfl.29.1519125850466;
 Tue, 20 Feb 2018 03:24:10 -0800 (PST)
MIME-Version: 1.0
From: Nick Couchman <vnick@apache.org>
Date: Tue, 20 Feb 2018 11:23:59 +0000
X-Gmail-Original-Message-ID: <CAFjj603G+ZGK5jsJKoX6o4LB9PVyBUZEwg+rcuSaL4OFwAGHfg@mail.gmail.com>
Message-ID: <CAFjj603G+ZGK5jsJKoX6o4LB9PVyBUZEwg+rcuSaL4OFwAGHfg@mail.gmail.com>
Subject: Terminal Mode Encoding
To: "libssh2-devel@cool.haxx.se" <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0095985785=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0095985785==
Content-Type: multipart/alternative; boundary="94eb2c1c2222afb4720565a30c8e"

--94eb2c1c2222afb4720565a30c8e
Content-Type: text/plain; charset="UTF-8"

This may be a really simple question, but I was wondering if someone could
provide some examples of how to pass various Terminal Mode encoding options
through in the libssh2_channel_request_pty_ex function?  In particular I'm
interested in passing through the VERASE setting so that the SSH target
system has a better chance of picking up the erase character being sent by
the client.  Most of the examples I've been able to find just use the
libssh2_channel_request_pty() macro, which seems to pass no terminal mode
options to the _ex() function, so I was hoping someone could provide an
example of how to pass options?

Thanks,
Nick

--94eb2c1c2222afb4720565a30c8e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<span style=3D"color:rgb(49,49,49);word-spacing:1px;background-color:rgb(25=
5,255,255)"><div dir=3D"auto">This may be a really simple question, but I w=
as wondering if someone could provide some examples of how to pass various =
Terminal Mode encoding options through in the libssh2_channel_request_pty_e=
x function?=C2=A0 In particular I&#39;m interested in passing through the V=
ERASE setting so that the SSH target system has a better chance of picking =
up the erase character being sent by the client.=C2=A0 Most of the examples=
 I&#39;ve been able to find just use the libssh2_channel_request_pty() macr=
o, which seems to pass no terminal mode options to the _ex() function, so I=
 was hoping someone could provide an example of how to pass options?</div><=
/span><div style=3D"color:rgb(49,49,49);word-spacing:1px" dir=3D"auto"><br>=
</div><div style=3D"color:rgb(49,49,49);font-size:1rem;word-spacing:1px" di=
r=3D"auto">Thanks,</div><div style=3D"color:rgb(49,49,49);font-size:1rem;wo=
rd-spacing:1px" dir=3D"auto">Nick</div>

--94eb2c1c2222afb4720565a30c8e--

--===============0095985785==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============0095985785==--

