Problem in socket binding
| Mon, 2007-09-24 06:25 | |
|
|
hi all, I am using socket to send sms to a particular port number. But I am getting socket not binding error. //Opening socket TSmsAddr smsaddr; //binding socket with Sms address TInt bindStatus = socket.Bind(smsaddr); else //end Every time I am getting the "Binding Un Success" as display... Please help me guys..
Kannabiran.K |






Forum posts: 20
I am using socket to send Sms to a port...
I want to know what are all the capabilities needed to send SMS to a port using socket?
Thanks & Regards
Kannabiran.K
Forum posts: 1246
This line:
needs to be:
An easy mistake to do.
One way to prevent it from happening is to always write the constant to the left like this:
If you get used to write it like this, you will get a compile time error if you happen to write only "=" by mistake.
Forum posts: 20
I tried with that.. Then also not working..
My problem is the SMS is receiving to the inbox... I want to receive it in a specific port(16500) from my J2Me application.
which one is correct method to specify the to address?
// I am using this
smsMsg->SetToFromAddressL(_L("sms://+919841240330:"));
smsMsg->SetToFromAddressL(_L("9841240330"));
Thanks & Regards
Kannabiran.K