Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
BB_shi
Posts: 91
Registered: ‎03-15-2011
My Device: Blackberry 9800
My Carrier: developer

Socket implementation in C++

Hi All,

 

For hybrid applications, i have to create an extension.

 

functionality I need to implement is:


1. Application requests to connect to Cellular data connection for SIM authentiaction of operator. If Wi-Fi and Mobile Data both are available, do server resuest through Mobile data only.
2. On successful connection, a server request is sent and recieve the xml response.
3. Parse this xml response and create JSON object.
4. Make available this JSON object to hybrid application.

 

I tried it with Webworks custom extension but didn't get success beacause there is no complete working sample available for Signal Slot mechanism.

 

Now i am trying to implement it with Socket. I am new to C++. 

I tried File transfer Client side code given at below link:

http://www.cs.put.poznan.pl/csobaniec/examples/sockets/

 

But didn't get succcess. I am passing arguments in Run Configuration-> Arguments-> "abc"

But it's not working and showing argument count 2 only.

 

How to implement Socket programming in C++. Please provide any working Sample.

 

Please help me.

It's very urgent. 

Thanks in advance.

Please use plain text.