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
New Contributor
su38
Posts: 6
Registered: ‎09-20-2011
My Device: BB 9930
My Carrier: -

Playbook Network I/O

Hi, I was considering developing under the Native SDK rather than the Adobe Air SDK but I am concerned about the functionality of the NDK in terms of support for network I/O (more specifically HTTP Request/Responses) even in terms of manipulating basic sockets.

 

Before I start development, I would like to know from those developing using the NDK, what functionality is provided in terms of network I/O either natively or through open source libraries. It seems as though RIM provides methods for checking whether a network connection exists so there should be some sort of support for network I/O. I noticed that a considerable amount of open source libraries are being ported over for the playbook such as Boost and QT which might support network I/O but they dont seem to be fully supported (the Boost source is non-exsistent and the ported QT source is only the core frameworks). Another possibility may be that some other library can be cross compiled to the QNX platform that supports some sort of network I/O.

 

Thank you for your help.

Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: Playbook Network I/O

Libcurl can handle HTTP

http://curl.haxx.se/libcurl/
Please use plain text.
Developer
dbigham
Posts: 516
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: Playbook Network I/O

Incase others fine it useful, here are my notes and some sample code for receiving an HTTP request:

 

http://www.danielbigham.ca/curl.htm

Please use plain text.
New Developer
Tuddrussel
Posts: 13
Registered: ‎04-15-2012
My Device: non-blackberry
My Carrier: non-blackberry

Re: Playbook Network I/O

I am able to use QNetworkAccessManager to do HTTP IO

Please use plain text.
Developer
dbigham
Posts: 516
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: Playbook Network I/O

Please use plain text.
New Developer
Tuddrussel
Posts: 13
Registered: ‎04-15-2012
My Device: non-blackberry
My Carrier: non-blackberry

Re: Playbook Network I/O

What IDE are u using?
Please use plain text.
Developer
dbigham
Posts: 516
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: Playbook Network I/O

Please use plain text.
BlackBerry Development Advisor
anhu
Posts: 54
Registered: ‎10-26-2011
My Device: Playbook
My Carrier: Rogers

Re: Playbook Network I/O

Please search for BlackBerry NDK samples on github.  

We have many samples up there including one called httpProxy which shows how to use bps to query bps for proxy information and pass that on to libcurl.  

Please use plain text.