Flex 3 Beta 2 Socket question

Hi,
Last night I spent about 3 hours looking for problem which
came up for me yesterday. Before I'll get back to writing sample
app which tell me if there is a problem in my code I will ask if
anyone has noticed this behaviour.
I'm connecting to c# socket with Socket class. First message
goes nicely. But when I'm trying to write next messages nothing
happends. Messages from socket are coming all the time. The problem
is only with writing.
I'm using writeUTFBytes method to write. RIght after writing
I'm executing flush() n socket.
Is it possible it is the problem with Flex Socket in 3 Beta
2?

in
http://bugs.adobe.com/jira/browse/FB-9947
it is remarked that re-establishing an internet connection resolves
the issue, but it DOES NOT!
I still get the
'Flex Builder cannot access the server containing the Start
Page content.
If you are offline, try connecting to the network and
refreshing the Start Page.' message.
Andy

Similar Messages

  • What is better???--sockets question

    I have a server that receives one client (one thread of them) per socket.
    Is it better to have all in the same socket?
    where is the bottle�s neck? in the processor or in the bandwith?

    ok
    and what is better for my server:
    1) receive each client in a different socket
    2)receive all clients in one socketAFAIK you would need a new port for each server socket. How then can your clients know which port to connect too? Therefore I think (2) is the proper solution.
    For a general implementation of a tcp server, have a look at my solution at http://www.ebi.ac.uk/~kirsch/monq-doc/monq/net/TcpServer.html . You can download the code by following the link at the bottom of that page. Comments/questions welcome.
    Harald.

  • Flex 4 localization question

    Hello,
    I have an application MyAdd compiled with only one locale, the en_US one.
    I have another project for locales where I compile them and move them to main project bin-debug/lang folder.
    When loading another locale at runtime, let say fr_FR, i get those messages :
    [SWF] X:\wb_3.5.1\MyApp\bin-debug\lang\fr_FR.swf - 70,770 bytes after decompression
    Error #2032: Stream Error. URL: file:///X:/wb_3.5.1/MyApp/bin-debug/lang/textLayout_1.0.0.594.swf
    Failed to load RSL textLayout_1.0.0.594.swf
    Failing over to RSL http://fpdownload.adobe.com/pub/swz/flex/4.0.0.13875/textLayout_1.0.0.594.swf
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    [SWF] X:\wb_3.5.1\MyApp\bin-debug\lang\fr_FR.swf - 647,153 bytes after decompression
    Error #2032: Stream Error. URL: file:///X:/wb_3.5.1/MyApp/bin-debug/lang/osmf_flex.4.0.0.13495.swf
    Failed to load RSL osmf_flex.4.0.0.13495.swf
    Failing over to RSL http://fpdownload.adobe.com/pub/swz/flex/4.0.0.13875/osmf_flex.4.0.0.13495.swf
    [SWF] X:\wb_3.5.1\MyApp\bin-debug\lang\fr_FR.swf - 370,463 bytes after decompression
    Error #2032: Stream Error. URL: file:///X:/wb_3.5.1/MyApp/bin-debug/lang/framework_4.0.0.13875.swf
    Failed to load RSL framework_4.0.0.13875.swf
    Failing over to RSL http://fpdownload.adobe.com/pub/swz/flex/4.0.0.13875/framework_4.0.0.13875.swf
    [SWF] X:\wb_3.5.1\MyApp\bin-debug\lang\fr_FR.swf - 2,292,142 bytes after decompression
    Error #2032: Stream Error. URL: file:///X:/wb_3.5.1/MyApp/bin-debug/lang/spark_4.0.0.13875.swf
    Failed to load RSL spark_4.0.0.13875.swf
    Failing over to RSL http://fpdownload.adobe.com/pub/swz/flex/4.0.0.13875/spark_4.0.0.13875.swf
    [SWF] X:\wb_3.5.1\MyApp\bin-debug\lang\fr_FR.swf - 1,429,085 bytes after decompression
    Error #2032: Stream Error. URL: file:///X:/wb_3.5.1/MyApp/bin-debug/lang/sparkskins_4.0.0.13875.swf
    Failed to load RSL sparkskins_4.0.0.13875.swf
    Failing over to RSL http://fpdownload.adobe.com/pub/swz/flex/4.0.0.13875/sparkskins_4.0.0.13875.swf
    [SWF] X:\wb_3.5.1\MyApp\bin-debug\lang\fr_FR.swf - 323,414 bytes after decompression
    Error #2032: Stream Error. URL: file:///X:/wb_3.5.1/MyApp/bin-debug/lang/rpc_4.0.0.13875.swf
    Failed to load RSL rpc_4.0.0.13875.swf
    Failing over to RSL http://fpdownload.adobe.com/pub/swz/flex/4.0.0.13875/rpc_4.0.0.13875.swf
    [SWF] X:\wb_3.5.1\MyApp\bin-debug\lang\fr_FR.swf - 441,686 bytes after decompression
    My question is about including those locale swf files in my project via Ant script (in order to avoid downloading them from Adobe ftp):
    Do I have to just copy them from the framework folder, or can I compile them directly with flexAntTasks somehow?
    Thank you in advance for your help,
    Adnan

    Thank you for your answer but the SDK is merged in the code.
    The application works, this particular problem occurs when trying to load a locale at runtime as explained in first post.
    var eventDispatcher:IEventDispatcher = resourceManager.loadResourceModule("lang/fr_FR.swf");
    eventDispatcher.addEventListener(ResourceEvent.COMPLETE, localeCompleteHandler);
    private function localeCompleteHandler(event:ResourceEvent):void
        resourceManager.localeChain = [ "fr_FR"];
    (the code is more complex but it is just to illustrate what I am doing)

  • Which is better sockets/socketchannel why

    which is better java.io.Socket / java.nio.channel.SocketChannel

    Better for what? They both work. Sockets are simple but only support blocking operations. SocketChannels are about ten times as complex to use but they support non-blocking and multiplexed I/O and also various types of direct and mapped buffering so they can also imply less data movement.

  • Flex 2 - Multiple Questions (1) Touchpad and (2) USB 3.0

    Hi lenovo friends,
    I recently bought a Flex 2 14 (not sure if D) (59423165).
    Firstly, can anyone link me to the correct drivers page for W8.1x64? Thank you!
    Here are my questions:
    1) Is there middle-click functionality for the touchpad? I cannot seem to find a way to middle-click. Does anyone know of third-party programs that will restore this functionality if the Flex 2 14 doesn't already come with it?
    2) I am not achieving USB 3 speeds on the USB 3 port. I have a USB 3 flash drive that works perfectly on my desktop (achieving up to 120 MB/s), but I only achieve 30 MB/s on the Flex 2 14's USB 3 port. I am guessing that I do not have the driver installed. Can anyone help me find the correct drive?
    Thanks in advance,
    Chris

    http://support.lenovo.com/us/en/products/laptops-and-netbooks/flex-series/flex-2-14-notebook-lenovo?...
    1. Install the generic driver:
    1. Disable signature enforcement: https://www.youtube.com/watch?v=NM1MN8QZhnk
    2. Install the synaptic driver: 17.0.19
    3. Install the aforementioned patch
    2. Try the link above.

  • Flex Beta 3 Help Documantation

    Hi all,
    I hv installed Flex 2 Beta 3 version ...
    While using this i found that...
    User can only view the help about flex 2.0
    when the flex builder is open.
    Don't the adobe team think that documentation should be
    separate as
    in flex 1.5
    with kind regards,
    vinay sharma

    Hi,
    Check the Adobe Labs Site there you can find the current
    documentation of Flex 2.
    Here is the link:
    Documentation

  • Java Socket Question

    Bonjour all,
    I have a bit of a weird question about Socket output and input streams, when I use the following code everything works fine.
    Socket soc = new Socket("123.456.789.1", 1234);
    +//     Send data request+
    +DataOutputStream dos = new DataOutputStream(soc.getOutputStream());
    dos.writeInt(INT);
    dos.flush();
    +//     Wait for reply+
    ObjectInputStream ois = new ObjectInputStream(soc.getInputStream());
    ArrayList<String> files = (ArrayList<String>) ois.readObject();
    How ever if I declare my Output and Input Stream readers together, my program justs hangs.
    Socket soc = new Socket("123.456.789.1", 1234);
    +//     Define streams+
    DataOutputStream dos = new DataOutputStream(soc.getOutputStream());
    ObjectInputStream ois = new ObjectInputStream(soc.getInputStream());
    +//     Send data request+
    dos.writeInt(INT);
    dos.flush();
    +//     Wait for reply+
    ArrayList<String> files = (ArrayList<String>) ois.readObject();
    Anyone got any ideas why this is??
    Edited by: 836869 on 15-Feb-2011 04:02

    You have to flush your ObjectOputStream first, it is worth noting that you are not, 1) using an ObjectOutputStream, 2) flushing it before opening the ObjectInputStream.
    Try this.
    ObjectOutputStream oos = new ObjectOutputStream(soc.getOutputStream());
    oos.flush();
    ObjectInputStream ois = new ObjectInputStream(soc.getInputStream());If you want to swap an integer as part of the header, you can do the following.
    ObjectOutputStream oos = new ObjectOutputStream(soc.getOutputStream());
    oos.writeObject(INT);
    oos.flush();
    ObjectInputStream ois = new ObjectInputStream(soc.getInputStream());
    Integer intValue = (integer) ois.readObject();

  • Socket question related

    Hi all!
    I would like know if exists a way to determinate wich ip address i'll use to connect on a remote machine situated out of my lan where application will run.
    Example:
    Socket socket   = new Socket("some.host.net", 4444);
    String local_ip = socket.getLocalAddress().getHostAddress(); //Will be 192.1.1.1 (lan ip)
    //...Router ip is for example 212.121.5.6 (a pubblic ip)
    Whic is the way (if there is any) to know the router ip by my java app??
    Thanks for any help!

    No sorry, i try to explain better now.
    I have a client into a lan where my app run and talk with a remote server.
    I cant manipulate server application, just use it.
    I need to know by client application wich ip i use to connect on the server.
    The client address is for example 192.168.1 (lan address) and the gateway address is 212.213.215 (public ip)
    The server application will receive request from 212.213.215
    I need to know the getaway ip (which ip will connect on the server).
    Hope i explained better now

  • Better practice question on sqlite operation

    Hi everyone,
    This is an open ended question, and I am sure there will be a lot of different directions on this, so here goes....
    I have a master template database (empty), that I copy to a working location.
    At this point, i need to load the working database with some items from another query of the master item list.
    the databases do not have the same fields, only an identifier that tells the application what group of items to copy from the master list and place into the working database.
    So the question is this.....
    What is the better approach to performing this operation?
    The databases are different, so an inline SQL query will not work, and my guess is that an array of items that is built from a query that performs the proper where clause and sorting, then write that array to the working database.
    Does anyone have a better approach?
    take care
    tony

    A similar approach if you do not need the data to be transferred for any other process would be to generate the SQL insert/update statement from your query and then execute the array of statements.

  • Z97S Krait Edition CPU Socket Question

    Hi, I'm wondering whether the socket backplate on the reverse side of the the board is insulated. So far I have been unable to find any specific information online - although it seems that some ASUS products come with this as a protective feature. I'm just wondering whether this comes as a default for all socket 1150 boards. The reason I'm asking is because I am concerned that this item may come into contact with the chassis of my case and would like some peace of mind on this matter.
    I've attached a photo of the item in question - the silver socket behind the X shaped backplate (btw this is not a actual photo of my motherboard).
    Cheers

    the image isn't show up, you have to add tag in your post to show it
    ie:
     edit your post, then choose "Attachments and other options"
    then select desire placement/location in your reply and click on
    [Insert Attachment 1 in the message]
    [Insert Attachment 2 in the message]
    or use direct tags in your message to access the attached files with:
    Code: [Select]
    [_attachthumb=1]
    [_attachthumb=2]
    without "_" in front

  • Hub/Socket question

    Just ordered an upgrade from old BT broadband to Infinity 2 and a question occurs to me. Sales person arranged for an enginer to come out to (I think) do something to the socket. Does the Infinity Hub have to be pluged into a specific socket or will anyone do?
    I ask at the hub is plugged into a socket in the study which is a faff to get to so if the engineer needs to get to it I'll have to do some furniture moving before they get here.
    Any assistance appreciated.

    Hi Randor and welcome
    Please have a read if this - http://bt.custhelp.com/app/answers/detail/a_id/13736/c/346 as this answers everything you've asked.
    -+-No longer a forum member-+-

  • Client Server Socket question!

    Hello all,
    how are ye.
    I would like to ask a question.
    I would be graterful for any suggestions relating to my query.
    i am creating a program that needs to communicate over a network
    it has two parts
    P1) sends request to the other program mainly about account information and
    also updates.
    P2) the second part among other things listens for messages on a port from Program One.
    but also must be able to interface with the user who is using Program Two, the user should be able
    to view account info update delete search etc.
    my problem is how will i get the second program todo both operations do i need
    to create another thread that listens and if i do this. will i be able to
    like add info to a database from this thread.
    Mainly i need suggestion as to how i should implement a scenario like the above.
    I am sorry if i havent spelled out my problem in a clear manner.
    Very grateful for any assistance.
    Thank you all :-)

    http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/socket.html
    That should help you out.

  • Socket question (security)

    hi,
    in my thread which handles the handshake for incoming client connections i am using the following code:
    BufferedReader reader = new BufferedReader(
    new InputStreamReader(in));
    String myQuery = reader.readLine();
    readLine() blocks until it hits a termination like \n or the "EOF" has been reached.
    this is fine as long as nobody sends me endless datastreams (without termination characters) (flooding) - which would prevent other users to connect. is there a better way to solve this?
    i also tried:
    if(in.available() > 0)
    query = new byte[in.available()];
    in.read(query);
    but for some reason this does not work with a normal client connection - the connection is ok
    but there's no avaiable data.
    is it possible to set a timeout for a inputstreamreader - so other client are able to connect?
    maybe somebody has an idea.
    thanx,
    mischka

    which would prevent other users to connect.What about dealing in different threads with the different clients?
    See also Socket's setSoTimeout.

  • 'Use minimum version required by the Flex SDK' setting question

    Hi,
    Can someone explain why after downloading the latest stable Hero SDK (build 19786), which only has fp10.2 support in the framwork/libs/player directory, would the 'Use minimum version required by the Flex SDK' build property still tell Flash Builder to build for fp10.1?
    In my flex-config.xml file from this new SDK, I see the target-player attribute is set to 10.2. Is there a bug in burrito that would fail for that value to be used?

    No. That should work. Builder also reads the minimum value from flex-config.xml.
    Just to check - you added this as a new SDK in Preferences -> Flash Builder -> Installed Flex SDKs and either made that the default SDK or changed the project to use the new SDK, right?

  • Illustrator CS6 beta GRID question.

    Can someone who is beta-testing Illustrator CS6.. Does it yet allow you to change the grid to Thousandths?
    I use Illustrator with CADtools plugin for architectural drafting.  I need to adopt a drawing to 1/8 (.125) or 3/8 (.375) scale.  As it is, CS5 can only change it to .12-.13, or .37-.38 respectively.  This throws off the scale of the floor plan.
    Thanks.
    PS, I did put in a request when both CS4 and CS5 were out, so hopefully this was looked into.  With the increased power and features of Illustrator, allowing draftsman to use it as a CAD program would be very beneficial.

    People might actually start complaining if they get to see the 14+ accurate decimals *everywhere*' as that is what Illustrator does its internal calculations with.
    Actually, Illustrator's internal calculations are far worse than that, and it's a reason Illustrator doesn't show a lot of digits.
    The main problem is that all coordinates in Illustrator are represented internally in the rather awkward units of 1/2048 of a point. While convenient from a binary standpoint (11 bits for the fraction), this value -- suppose we call it a 'zip' -- means that many values, both in points and in other units like mm, cannot be represented precisely.
    Since there are 2048 zips in a point, and 72 points in an inch, there are 2048*72 = 147456 zips/inch. Values like 0.25in (36864 zips), 0.125in (18432 zips),and 0.0625in (9216 zips) can all be exactly represented. But something like 0.1in cannot, since it would be 14745.6 zips and the number of zips must be integral. The closest we can come is 14746 zips, or 0.10000271267in.
    Millimeters are even worse, since even 1mm cannot be exactly represented in zips (1mm would be 5805.35433071 zips; we must be content with 5805 zips, or 0.999938965mm). 0.125mm (725.66929 zips) gets changed to 0.125056966mm (726 zips).
    Generally the values in Illustrator are shown in the user interface rounded to three digits, so you don't notice the slight inaccuracies. They're still there, though. For example, draw a 0.125mm square and scale it to 10000% -- the resulting square will be 12.506mm, not 12.5mm.
    DF

Maybe you are looking for

  • Emoji picker shortcut not working

    In 10.9 you can access emoji by pressing Control-Command-space. Then a emoji picker will be displayed. This does not work for me. I have checked System Preferences/Keyboard/Shortcuts but there is no conflict. Keys are working fine and I also can manu

  • Migration Assistant - from non functioning imac to new imac?

    My daughter's G5 imac has a bad graphics card (per apple store genius). Logic board is apparently OK but computer can't be used. She has decided to buy new a imac. Her concern is all of the data on her old imac's hard drive which she wants to transfe

  • Can MS Access support UTF8?

    Hi expert, i would like to use java to connection with a small database in MSAccess for some read/write with unicode but some of the code become '?' do any expert have any idea? From Timothy

  • Is there a way to import ACL into WiSM

    I was trying to find an easier way to import ACL's into WiSM or WCS . Any thoughts ?

  • ABAP WebDynpro Problem

    I want to develop a small application in ABAP WebDynpro like------ 1>it takes the name of a DDIC table as input and then displays the data as a tabular form 2>If I modify the data in the displayed table and then press the save button the data will be