<?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 - Problem in socket binding - Comments</title>
 <link>http://www.newlc.com/en/forum/problem-socket-binding</link>
 <description>Comments for &quot;Problem in socket binding&quot;</description>
 <language>en</language>
<item>
 <title>Re: Problem in socket binding</title>
 <link>http://www.newlc.com/en/forum/problem-socket-binding#comment-41759</link>
 <description>&lt;p&gt;&lt;br /&gt;
I tried with that.. Then also not working..&lt;br /&gt;
My problem is the SMS is receiving to the inbox... I want to receive it in a specific port(16500) from my J2Me application.&lt;/p&gt;

&lt;p&gt;which one is correct method to specify the to address?&lt;/p&gt;

&lt;p&gt;// I am using this&lt;br /&gt;
smsMsg-&gt;SetToFromAddressL(_L(&quot;sms://+919841240330:&quot;));&lt;br /&gt;
	&lt;br /&gt;
smsMsg-&gt;SetToFromAddressL(_L(&quot;9841240330&quot;));&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 24 Sep 2007 14:01:18 +0200</pubDate>
 <dc:creator>kannabiran.krish</dc:creator>
 <guid isPermaLink="false">comment 41759 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in socket binding</title>
 <link>http://www.newlc.com/en/forum/problem-socket-binding#comment-41754</link>
 <description>&lt;p&gt;This line:&lt;/p&gt;

&lt;p&gt;&lt;pre class=&quot;bb-code-block&quot;&gt;
if (bindStatus = KErrNone)
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;needs to be:&lt;/p&gt;

&lt;p&gt;&lt;pre class=&quot;bb-code-block&quot;&gt;
if (bindStatus == KErrNone)
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;An easy mistake to do.&lt;br /&gt;
One way to prevent it from happening is to always write the constant to the left like this:&lt;/p&gt;

&lt;p&gt;&lt;pre class=&quot;bb-code-block&quot;&gt;
if (KErrNone == bindStatus)
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;If you get used to write it like this, you will get a compile time error if you happen to write only &quot;=&quot; by mistake.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 24 Sep 2007 12:41:16 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 41754 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in socket binding</title>
 <link>http://www.newlc.com/en/forum/problem-socket-binding#comment-41748</link>
 <description>&lt;p&gt;&lt;br /&gt;
I am using socket to send Sms to a port...&lt;/p&gt;

&lt;p&gt;I want to know what are all the capabilities needed to send SMS to a port using socket?&lt;/p&gt;</description>
 <pubDate>Mon, 24 Sep 2007 10:40:31 +0200</pubDate>
 <dc:creator>kannabiran.krish</dc:creator>
 <guid isPermaLink="false">comment 41748 at http://www.newlc.com</guid>
</item>
<item>
 <title>Problem in socket binding</title>
 <link>http://www.newlc.com/en/forum/problem-socket-binding</link>
 <description>&lt;p&gt;hi all,&lt;/p&gt;

&lt;p&gt;    I am using socket to send sms to a particular port number. But I am getting socket not binding error.&lt;/p&gt;

&lt;p&gt;//Opening socket&lt;br /&gt;
User::LeaveIfError(&lt;br /&gt;
                socket.Open(sockServ, KSMSAddrFamily, KSockDatagram, KSMSDatagramProtocol));&lt;br /&gt;
CAknInformationNote* informationNote = new ( ELeave )CAknInformationNote;&lt;/p&gt;

&lt;p&gt;TSmsAddr smsaddr;&lt;br /&gt;
smsaddr.SetSmsAddrFamily(ESmsAddrSendOnly);&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/problem-socket-binding&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/problem-socket-binding#comments</comments>
 <category domain="http://www.newlc.com/en/forums/internet">Internet and Network access</category>
 <pubDate>Mon, 24 Sep 2007 07:25:52 +0200</pubDate>
 <dc:creator>kannabiran.krish</dc:creator>
 <guid isPermaLink="false">19058 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
