[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    First try with Fiddle
From:       Bar Hofesh <bar.hofesh () safe-t ! com>
Date:       2014-11-22 12:37:29
Message-ID: 54708389.8080206 () safe-t ! com
[Download RAW message or body]

[Attachment #2 (text/html)]

<html style="direction: ltr;">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;" bidimailui-charset-is-forced="true"
    bgcolor="#FFFFFF" text="#000000">
    <font face="Tahoma">So, This is my code:
      <a class="moz-txt-link-freetext" \
href="https://gist.github.com/bararchy/611823f691dbf765c80c">https://gist.github.com/bararchy/611823f691dbf765c80c</a><br>
  <br>
      The specific part is this two first lines:<br>
      <br>
      1) </font>ssh_bind <span class="pl-k">=</span> <span
      class="pl-s3">Fiddle</span>::<span class="pl-s3">Function</span>.<span
      class="pl-k">new</span>(libssh[<span class="pl-s1"><span
        class="pl-pds">'</span>ssh_bind_new<span \
                class="pl-pds">'</span></span>],[],<span
      class="pl-s3">Fiddle</span>::<span class="pl-vo">TYPE_LONG</span>)<br>
    <font face="Tahoma">2)</font> ssh_session <span class="pl-k">=</span>
    <span class="pl-s3">Fiddle</span>::<span class="pl-s3">Function</span>.<span
      class="pl-k">new</span>(libssh[<span class="pl-s1"><span
        class="pl-pds">'</span>ssh_new<span class="pl-pds">'</span></span>],[],<span
      class="pl-s3">Fiddle</span>::<span class="pl-vo">TYPE_LONG</span>)<br>
    <br>
    Now, I used the TYPE_LONG as what I expect to get back as value,
    but, if you look into the documentation of the libssh ssh_bind_new
    and ssh_new function you will see the real return object is not an
    int, its a pointer, now, how would I tell Fiddle to expect a Pointer
    back as the object ? <br>
    <br>
    Thanks,<br>
      <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
      <title></title>
      <div bidimailui-direction-uniformity="ltr">
        <div bidimailui-direction-uniformity="ltr" dir="ltr">
          <div bidimailui-direction-uniformity="ltr"
            style="text-align:left"><b><span
style="font-size:13.0pt;font-family:&quot;Candara&quot;,&quot;sans-serif&quot;;color:#404040"><img
  alt="Safe-T.com"
                  src="cid:part1.01040204.00020604@safe-t.com"
                  height="40" width="122"><br>
                Bar Hofesh</span></b><span
style="font-family:&quot;Candara&quot;,&quot;sans-serif&quot;;color:#404040"><br>
            </span><span
style="font-family:&quot;Candara&quot;,&quot;sans-serif&quot;;color:#404040"></span></div>
  </div>
        <br>
      </div>
    </div>
  </body>
</html>


["image002.jpg" (image/jpeg)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic