Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: SocketServer ---AIR-- for server-client (P-P kind of) issue

@ranaun:  Thanks for getting back to me.  The SDK is the BB SKD 0.9.1, so its an AIR application for 2.5.  The error is in the kaigame library that is also going against BB 0.9.1.  I selected "Include Adobe AIR libraries" under "Flex Library Compiler" and the errors went away.

 

It now complains about the AmericanTypewriterBold.ttf not being a proper font file. (Unable to transcode /assets_embed/AmericanTypewriterBold.ttf ).  Windoes does not think it is a "valid font file".  I replaced it with another TTF font file, and all is OK, accept for a bunch of warnings like:

 

"Class 'com.renaun.embeds:EmbedBackgroundSliceBottom' does not extend the 'DefineBits' asset base class 'flash.display.Bitmap'. EmbedBackgroundSliceBottom.as /PickQuick/src/com/renaun/embeds "

Please use plain text.
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: SocketServer ---AIR-- for server-client (P-P kind of) issue

@ranaun:

 

General question about the UDP broadcast and the "local network".  How "local" is the local network?  Is it just on the computer's LAN and not the WAN/Internet?  If the PB is on a provider's network (e.g. Verizon) what is the "reach" of this protocol?  What is considered a "neighbor" or "group"?  Is there some documents that discusses the network reach of this process?

 

Does the protocol reach all instances of the application that might be running on the internet or are their nested groups that can be specified/registered?  Looks maybe the port defines the group and an id (e.g. "pgch") defines a channel on that service port?

 

 

Please use plain text.
Regular Contributor
renaun
Posts: 86
Registered: 10-25-2010

Re: SocketServer ---AIR-- for server-client (P-P kind of) issue

multicast is all devices that can communicate on the same multicast ip. There is an ip range that is setup for multicast ip in IPv4 (http://en.wikipedia.org/wiki/IP_multicast). So simple use case is what I call local, where all devices are on the same wifi. Having devices being able to access the same multcast ip range and reside on different NAT's etc.. is a bunch of router/admin configuration that is not something you will have control over or will likely be useful. So the best use case is all on the same wifi router, cell data connections are probably not on similar NATs or access the same multicast routing.

 

The group specificer and RTMFP provide string identifiers to create channel like message management. This allows you to use the same IP and port for multiple apps. The message is sent out and only the clients that are listening for the specific GroupSpecifier will get the message. Check out ASDocs for more API info - http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/GroupSpecifier.html#add...

 

Thank you for the feedback on the ttf font on windows. I'll have to look at that issue. The warnings about the DefineBits is a known issue (bug filed) and doesn't affect anything.

blog: http://renaun.com
twitter: @renaun
Please use plain text.