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

New Contributor
Posts: 2
Registered: ‎04-09-2012
My Device: Playbook
Accepted Solution

Problem connecting to server



I'm, tryint to connecto to a server and I'm using the function getaddrinfo() but it fails and the error message I get is servname not supported for ai_socktype.


It's a Qt application that I'm porting and I have the <action>access_internet</action>  permission in the bar file.


What can I do to solve it? Thanks in advance.




New Contributor
Posts: 2
Registered: ‎04-09-2012
My Device: Playbook

Re: Problem connecting to server

Solved, I should have read the documentation more carefully instead of searching google for the error message.


I will put the answer here. I had code (that worked in iOS and PC) that set the addrinfo this way:




for the Playbook the setting that works is the following: