<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - copying INetAddr variable to (1)another InetAddr variable (2)RWriteStream - Comments</title>
 <link>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream</link>
 <description>Comments for &quot;copying INetAddr variable to (1)another InetAddr variable (2)RWriteStream&quot;</description>
 <language>en</language>
<item>
 <title>Re: copying INetAddr variable to (1)another InetAddr variable (2</title>
 <link>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream#comment-41025</link>
 <description>&lt;p&gt;Or even better, don&#039;t use the unecessary extra buffer.&lt;/p&gt;

&lt;p&gt;Just wrap the memory of your original T-variable in a TPtr, as I suggested in your time-thread:&lt;/p&gt;

&lt;p&gt;&lt;pre class=&quot;bb-code-block&quot;&gt;
TIntetAddr addr;
TPtr8 ptr((TUint8*)&amp;addr,sizeof(addr));

aWriteStream.WriteL(ptr);
&lt;/pre&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 24 Aug 2007 17:17:10 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 41025 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: copying INetAddr variable to (1)another InetAddr variable (2</title>
 <link>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream#comment-40965</link>
 <description>&lt;p&gt;&lt;code&gt;TBuf&amp;lt;30&amp;gt; bufTime;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Make the size at least 39, or you will only get buffer filled with *&#039;s, when the address happens to be IPv6 address. See&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://&quot; class=&quot;bb-url&quot;&gt;http://www.symbian.com/developer/techlib/v9.1docs/doc_source/reference/reference-cpp/N102B6/TInetAddrClass.html#%3a%3aTInetAddr%3a%3aOutput%28%29&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 23 Aug 2007 14:28:55 +0200</pubDate>
 <dc:creator>msa2</dc:creator>
 <guid isPermaLink="false">comment 40965 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: copying INetAddr .....................</title>
 <link>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream#comment-40882</link>
 <description>&lt;p&gt;d&lt;/p&gt;</description>
 <pubDate>Thu, 23 Aug 2007 12:15:16 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 40882 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: copying INetAddr .....</title>
 <link>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream#comment-40883</link>
 <description>&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 23 Aug 2007 12:13:27 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 40883 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: copying INetAddr ........</title>
 <link>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream#comment-40951</link>
 <description>&lt;p&gt;fOLLOWING CODE WORKS FOR STORING AND RETRIEVING InetAddr INTO Stream&lt;/p&gt;

&lt;p&gt;InetAddr iIpAddress;&lt;br /&gt;
TBuf&lt;30&gt; bufTime;&lt;br /&gt;
FOR WRITING TO STREAM&lt;br /&gt;
-----------------------------------------&lt;/p&gt;

&lt;p&gt;iIpAddress.Output(bufTime);&lt;br /&gt;
aStream&lt; &lt;/p&gt;

&lt;p&gt;FOR READING FROM STREAM&lt;br /&gt;
-------------------------------------------&lt;br /&gt;
aStream&gt;&gt;bufTime;&lt;br /&gt;
iIpAddress.Input(bufTime);&lt;/p&gt;

&lt;p&gt;BUT I DID NOT GET SOLN AS FOR TTime and TTimeIntervalSeconds Objects????????&lt;/p&gt;

&lt;p&gt;CAN ANY ONE THROW ANY LIGHT ON IT!!!!!!!!!!!!!!!!!!!!!!&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 23 Aug 2007 11:33:38 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 40951 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: copying INetAddr .........</title>
 <link>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream#comment-40886</link>
 <description>&lt;p&gt;I found some problem in storing and retrieving &lt;br /&gt;
TTime iTime;&lt;br /&gt;
TTimeIntervalSeconds iTimeOffset;&lt;br /&gt;
TTime iDate;&lt;br /&gt;
TInetAddr iIpAddress;&lt;/p&gt;

&lt;p&gt;objects into stream.&lt;/p&gt;

&lt;p&gt;I tried using&lt;br /&gt;
RWriteStream&amp; aStream;&lt;br /&gt;
aStream&lt;&lt;         iTime;&lt;br /&gt;
 aStream&lt;&lt;        iTimeOffset;&lt;/p&gt;

&lt;p&gt; aStream&lt;&lt;       iDate;&lt;/p&gt;

&lt;p&gt; aStream&lt; &lt;        iIpAddress;&lt;/p&gt;

&lt;p&gt;Can anyone tell how to write these objects into stream????????&lt;/p&gt;

&lt;p&gt;also TInt objects are not written into Stream with &lt;&lt; operator------------------- &lt;/p&gt;

&lt;p&gt;RWriteStream&amp; aStream;&lt;br /&gt;
TInt iColor;&lt;br /&gt;
aStream&lt;&lt; iColor; &lt;/p&gt;

&lt;p&gt;and I had to use&lt;/p&gt;

&lt;p&gt;RWriteStream&amp; aStream;&lt;br /&gt;
TInt iColor;&lt;br /&gt;
aStream.WriteInt32L(iColor);&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 22 Aug 2007 08:28:04 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 40886 at http://www.newlc.com</guid>
</item>
<item>
 <title>copying INetAddr variable to (1)another InetAddr variable (2)RWriteStream</title>
 <link>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream</link>
 <description>&lt;p&gt;&lt;br /&gt;
Dear friends,&lt;br /&gt;
       I need to copy INetAddr variable to (1)another InetAddr variable (2)RWriteStream&lt;/p&gt;

&lt;p&gt;to copy INetAddr variable to another InetAddr variable &lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
I am using &lt;/p&gt;

&lt;p&gt;        TInetAddr      iIpAddress;&lt;br /&gt;
        TInetAddr&amp;    aIpAddress;&lt;/p&gt;

&lt;p&gt;         iIpAddress= aIpAddress;&lt;br /&gt;
  &lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/copying-inetaddr-variable-1-another-inetaddr-variable-2-rwritestream#comments</comments>
 <category domain="http://www.newlc.com/en/forums/internet">Internet and Network access</category>
 <pubDate>Wed, 22 Aug 2007 06:47:25 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">18707 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
