<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic get the IP address of the current telnet session with C function in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622455#M105162</link>
    <description>Hi to all,&lt;BR /&gt;I would like to know if there is a way I can find out the IP address of my current telnet or ssh session with C functions. HPUX 11.11, untrusted system.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Fri, 09 Sep 2005 05:24:53 GMT</pubDate>
    <dc:creator>Joel Girot</dc:creator>
    <dc:date>2005-09-09T05:24:53Z</dc:date>
    <item>
      <title>get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622455#M105162</link>
      <description>Hi to all,&lt;BR /&gt;I would like to know if there is a way I can find out the IP address of my current telnet or ssh session with C functions. HPUX 11.11, untrusted system.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 09 Sep 2005 05:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622455#M105162</guid>
      <dc:creator>Joel Girot</dc:creator>
      <dc:date>2005-09-09T05:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622456#M105163</link>
      <description>This information is stored in the utmp file.&lt;BR /&gt;&lt;BR /&gt;From the shell you can get this information with: -&lt;BR /&gt;&lt;BR /&gt;who -mu  (the last field is the hostname/ip address)&lt;BR /&gt;&lt;BR /&gt;If you want to do this with C calls you'll have to use the getut calls.&lt;BR /&gt;&lt;BR /&gt;man 3 getut&lt;BR /&gt;&lt;BR /&gt;for more details.</description>
      <pubDate>Fri, 09 Sep 2005 05:35:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622456#M105163</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2005-09-09T05:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622457#M105164</link>
      <description>Thanks Simon,&lt;BR /&gt;I will try and I will publish my result... after my holliday.&lt;BR /&gt;&lt;BR /&gt;Joel&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Sep 2005 11:35:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622457#M105164</guid>
      <dc:creator>Joel Girot</dc:creator>
      <dc:date>2005-09-09T11:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622458#M105165</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The code I included shows how I do this.&lt;BR /&gt;I am a beginner with c language, excuse me for possible mistake...&lt;BR /&gt;&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;Joel&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2005 07:22:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622458#M105165</guid>
      <dc:creator>Joel Girot</dc:creator>
      <dc:date>2005-10-03T07:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622459#M105166</link>
      <description>I have checked your code using HP92453-01 A.11.01.21 HP C (Bundled) Compiler.&lt;BR /&gt;&lt;BR /&gt;Attached is working good.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 03 Oct 2005 07:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622459#M105166</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-03T07:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622460#M105167</link>
      <description>Great, Its working good (tested in 11.23) &lt;BR /&gt;&lt;BR /&gt;device name : pts/tb&lt;BR /&gt;pid : 15458&lt;BR /&gt;type of entry : 7&lt;BR /&gt;Process termination status : 0&lt;BR /&gt;Process exit status : 3&lt;BR /&gt;seconds time entry was made : 1127917725&lt;BR /&gt;microseconds time entry was made : 0&lt;BR /&gt;my device name : pts/0&lt;BR /&gt;&lt;BR /&gt;user login name : root&lt;BR /&gt;id : ts/0&lt;BR /&gt;device name : pts/0&lt;BR /&gt;pid : 12718&lt;BR /&gt;type of entry : 7&lt;BR /&gt;Process termination status : 0&lt;BR /&gt;Process exit status : 0&lt;BR /&gt;seconds time entry was made : 1128328306&lt;BR /&gt;microseconds time entry was made : 517252&lt;BR /&gt;............&lt;BR /&gt;............&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 03 Oct 2005 07:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622460#M105167</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-10-03T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622461#M105168</link>
      <description>Actually a much easier and more reliable method makes use of the getpeername() system call. Man 2 getpeername for details.</description>
      <pubDate>Mon, 03 Oct 2005 09:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622461#M105168</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-10-03T09:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622462#M105169</link>
      <description>Clay, have you an example of the use of getpeername ?&lt;BR /&gt;&lt;BR /&gt;Joel</description>
      <pubDate>Wed, 05 Oct 2005 05:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622462#M105169</guid>
      <dc:creator>Joel Girot</dc:creator>
      <dc:date>2005-10-05T05:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: get the IP address of the current telnet session with C function</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622463#M105170</link>
      <description>getpeername uses the socket id of a connected socket. Which socket would that be then? Or can any connected socket do?</description>
      <pubDate>Wed, 05 Oct 2005 06:34:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-the-ip-address-of-the-current-telnet-session-with-c-function/m-p/3622463#M105170</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-10-05T06:34:05Z</dc:date>
    </item>
  </channel>
</rss>

