App for charity of medical emergency. Someone at - it a Java to echo server?

Hello

I found several Java socket echo servers that work well with Flash.

The problem is that when I get the < policy-file-request >, I don't know how to manage it to make Flash fun.

Someone at - it an echo of Java skeleton server that can serve as a cross-domain policy file.

All I want to do is get "Hello World" of work, and I'll be able to finish an app, I do pro bono for a non-profit about medical emergencies.

I expected Cirrus to work on Android, but it didn't for me, so now I'm doing client server of <>.  I'm sure that client <>server will work, but I fight with query strategy cross-domain for 3-4 years now with no success.

James

Solution of Stackoverflow.com

package server;

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

import java.net.ServerSocket;

import java.net.Socket;

public class PolicyServer {}

public static final String POLICY_XML =

""

+ ""

+ ""

+ "\n";

public PolicyServer() {}

ServerSocket ss = null;

try {}

SS = new ServerSocket (843);

} catch (IOException e) {e.printStackTrace () ;}

While (true) {}

try {}

final Socket client = ss.accept ();

New Thread (new Runnable() {}

@Override

public void run() {}

try {}

client.setSoTimeout (10000); cleanup of the connections failed

client.getOutputStream () .write (PolicyServer.POLICY_XML.getBytes ());

client.getOutputStream () .write (0x00); write required endbit

client.getOutputStream .flush () ();

BufferedReader in = new BufferedReader (new InputStreamReader (client.getInputStream ()));

read two lines flashes emties buffer and magically it works!

in.readLine ();

in.readLine ();

} catch (IOException e) {}

}

}

({. start()});

} catch (Exception e) {}

}

}

Tags: Flash Builder

Similar Questions

  • Hello. Hard drive of my computer totally crashed &amp; I had to wipe my hard drive. I wasn't able to log out of my apps for the creation of clouds which my wife has 2 licenses for us. Can someone please explain the process to re download these apps please

    Hello. Hard drive of my computer totally crashed & I had to wipe my hard drive. I wasn't able to log out of my apps for the creation of clouds which my wife has 2 licenses for us. Can someone please explain the process to re download these apps please? Thank you..

    Hello

    Please refer to the help documents below to download the application Adobe CC:

    Creative cloud to desktop

    Download, install, update or uninstall applications

    Kind regards

    Sheena

  • When I tried to download an app for iPhone only on my iPad, the white icon indicating downloading appeared, but obviously it did not work, so I tried to delete, but even after I confirmed the deletion, the icon is still there! What should I do?

    Today, I tried to download a single app for iPhone, but it wouldn't work. (Well, that's why's called it "iPhone only apps") So I tried to delete it as anyone else, and it seemed to work fine, until I clicked the button to confirm, and the white installation icon would not disappear! I continued to by pressing DELETE and confirming, but the stupid icon was still there! Someone please help me or at least just tell me it's bugged and he is going to be there forever? Help, please!

    Try a simple Reset: press and hold the Power and Home buttons until you see the Apple logo.

    BTW, I have still a few iPhone only apps that work very well on my iPad with iOS 9.3 2 Air.

  • BlackBerry RBS App for Blackberry Smartphones

    I tried to download the Blackberry App World Site RBS, but I get a message saying: it is not available for my device.  I own a Torch 9860 and have had since Feb. 12 - the app I can't download was from 11 Sep.  Can someone help me?

    BB has nothing to do with an app for a bank.

  • How to add and remove app for desktop icons in windows 8?

    How to add and remove app for desktop icons in windows 8?

    Try right clikc on the desktop will create new and the shortcut then copy and paste the path

    Otherwise just right-click on the icon you use to get the programs and send to the office or by copying and blocks the icon on your desktop

    I'm sorry if I still get the wrong end of the stick and maybe someone else you know what

    hope this helps

    I.T. tech admin

  • Simple license app for teams

    We already have 6 licenses for all applications. We want to add another license to someone who will use Lightroom only. Is it possible to add him to our team with a single application, or do I have to subscribe him individually?

    The only CC app for the team cannot be merged with CC full team.

    Concerning

    Stéphane

  • Looking for a freelancer help publish DPS App for Android!

    We have successfully built and released our kiosk to Apple app, but now look to take the App for Android. I am struggling to find a freelancer / company that could help in this process... all the re-sizing of work will be in the House, but we need someone who is familiar with the process to take Android to help us with this.

    We are based in Tunbridge Wells, Kent. If anyone has any suggestions / recommendations that would be appreciated!

    Thanks in advance

    ABI

    HI Abi... I am based in Sydney, although can work remotely and will be in the United Kingdom in a few weeks.

    We have experince building company for DPS applications.

    Kind regards

    Charlie.

    [email protected]

  • Siri keeps saying "I don't see an app for that.  You will need to download one. »

    I just installed Sierra and tried to use Siri.  I can't open any app on my Mac.  No matter when I say something like, "FaceTime open" or "Open Pages," Siri comes back with something like "I don't see an app for that.  "You will need to download a ' or 'you don't seem to have an app called 'Pages'.  We could see if the App Store has it. »

    Hmmm... This is not sensible.

    You need to speak clearly. I had the same thing happen. It took a few tries but Siri has finally opened apps for me.

    Practice support

  • App for free weights and the monitoring of sleep

    I'm new to Apple Watch and would like suggestions on application of lifting weight, and also for the monitoring of sleep.

    I had very mixed results with 'sleep followed' apps for the  watch. I landed on an application for the phone called sleep Cycle that uses the microphone on your phone, sitting on the nightstand next to you to track sleep instead. Don't ask me how it works, but it does. He also knows that my wife is using the application itself across the bed and that is not what we do mixed.

    Can't help much with weight lifting, sorry... I have gave for years ready. : PEI

  • TBird app for Android?

    I was wondering if Mozilla has plans for a TBird app for Android. I know that I can use the app (s) native on the phone for messaging, but I can't find any way to sync my calendar and tasks, something that would be great to be able to.

    I have the true Apple fan that I assume... Laughing out loud

  • How can I download the Apple News app for my iMac

    Hello

    How can I download the Apple News app for my iMac, I have on my iPad but can't find it for the Mac, is it not available on Mac or he has another name for the iMac?

    Thank you

    There is no version for OSX.

  • Volume booster app for iPod 4gen w/Ios v6.1.6

    I have here a volume booster app for iPod 4gen w/Ios v6.1.6 Ios?

    I found a little but no surge of music or other sounds. I have one that works?

    It there's only so much audio which can be put material function. You try to increase the volume of the speaker or the volume of the headphones?

  • For the iPad 2 air, what is the best app for note taking allows you to use a removable keyboard and a stylus? Which is also a stylus good to use?

    I am looking to buy an iPad 2 air to take notes in college classes and I was wondering what is a good software that allows an external keyboard (like a laptop) to type notes and also allows the drawing with a stylus? What is a good pen that is compatible with the app and the iPad 2 air?

    If you really want to use stylus to take notes or draw you should go for iPad Pro with Apple pencil. Nothing else offers good experience especially for hand writing. If you ok with drawing then only pencil FiftyThree is a good choice on iPad 2 Air (but again, it is much worse in my opinion, then iPad Pro + Apple pencil). FiftyThree is also one of the best (paper) apps for note taking (and it works well with their pencil).

    The keyboards are wide work system and not a dependent application. You can go for any model of the 3rd party like you which is compatible with iPad air 2. Advice covers the Apple Smart keyboard are specific to the Pro (they need specific for Pro iPad connector).

  • Is there a Firefox app for iPad/iPhone?

    Is to see an app for Android. Is there a Firefox app for iPad/iPhone?

    Hello Sid1, due to the restrictive policy of apple, it is unfortunately not possible to put in place and offer independent third-party browsers for idevices.

    Mozilla is against bringing the rendering motor & javascript in firefox on iOS, because apple only allows the use of its own webkit in terms for developers - as long as it does, Firefox and its ecosystem of the addon can be ported to iOS devices unfortunately.

    http://www.PCMag.com/Article2/0, 2817,2416461,00.asp

  • The new Apple TV app for IOS

    The new Apple TV app for iOS will work with the 3rd generation Apple TV?

    IF you mean the Remote app, Yes.

Maybe you are looking for