Bug in socket.writeUTF ???

I am writing a tcp/ip client. I am using socket .writeUTF to
send the string to the server socket. However, there is a character
being inserted in my utf string (that I am not putting there). I
write the string to my display just before sending it, and the
output doesn't match what I see in my sniffer going across to the
server. Has anyone else seen this ?

Actually I found that I was using the wrong method to write
the data. Thanks for your response.

Similar Messages

  • Test Stand Sequence Example - OverrideSe​rialNumFor​ParallelMo​del.Seq Bug with Socket Index Report?

    Hello -  is there a way to have the testand sequence  "OverrideSerialNumForParallelModel.Seq"   give the reports correctly with the "Test Socket Index"  Correctly at 0,1,2,3 instead of each window haveing 0,0,0,0
    I've spent a long time trying to get it to work  with my applciation -but can't seem to find the answer.
    OverrideSerialNumForParallelModel  can be found at: 
    \\Examples\ProcessModels\ParallelModel
    Many Thanks 
    brad
    Brad Whaley
    LabVIEW Certified Engineer
    Attachments:
    parallel-bug-testsand-report-index.jpg ‏156 KB

    Hi Brad,
    The reason that all of the report view tabs are displaying the same socket ID is that you are currently generating a single report file for all of your test sockets (the default behavior), and this same report file is being displayed for all of the sockets.  You will notice that if you scroll down in any of the reports, results for all of the other sockets will be present.  If you would prefer to have a separate report file for each test socket, you can enable the New UUT Report File for Each Test Socket report options as shown below.  
    Let me know if this does not fix the problem for you!
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • L when doing a master reset on iPhone.  Have tried turning off/on with no luck.  Safe reboot displays many bugs and socket is not launched.....

    Yesterday while attempting to perform a master reset on my iPhone 5, I was instructed to log onto iTunes, plug my phone in and "follow" the instructions.  After connecting my phone to my Mac book pro (bought a year and a half ago), the laptop recognized my phone and immediately after that, the apple icon and spinning wheel appeared.  Not realizing that it was not part of the download process, I waited a couple of hours to no avail.  I was informed by the person working at the phone store that the update could take 'awhile'.....I have tried turning on and off several times, and the screen remains grey with the apple icon and spinning wheel.  Just performed a safe boot using the shift - command - v key and the screen shows a long list of Bug: launchctl with a message at the bottom "socket is not connected".  Any suggestions would be appreciated.

    I would like to point out the fact that I mentioned my phone is iPhone 4, iOS 7.1.2
    I don't care if it is a known defect in iOS 8, my phone is not iOS 8 and can not be updated past 7.1.2
    Your solution will not work because I can't see the group message in the first place, deleting it would not be possible.
    Also, I can not wait for the update on a phone that can no longer update.

  • How to Send Multiple writeUTF to Socket in TCP?

    So with TCP in AS3, I'm trying to write strings over to the server and then to the clients, but it appears to only be able to read one at a time. This is not good because I'm sending messages based on keys being pressed, and the client has an action that needs to be taken place based on what key is pressed. Since multiple keys can be pressed at a time, obviously it does not work correctly.
    Client example:
    if (keys[p1_jump_key])
                p1_up = "down";
                sock.writeUTF("p1_up_down");
                sock.flush();
            else
                p1_up = "up";
                sock.writeUTF("p1_up_up");
                sock.flush();
            if (keys[p1_crouch_key])
                p1_down = "down";
                sock.writeUTF("p1_down_down");
                sock.flush();
            else
                p1_down = "up";
                sock.writeUTF("p1_down_up");
                sock.flush();
    And then here is the server:
    function socketDataHandler(event:ProgressEvent):void{
    var socket:Socket = event.target as Socket;
    var message:String = socket.readUTF();
    for each (var socket:Socket in clientSockets)
            socket.writeUTF(message);
            socket.flush();
    And finally, here is the recieving client (I have a method that allows the server to differentiate between the two):
    if(msg=="p1_down_down"){
            p1_down="down";
        if(msg=="p1_down_up"){
            p1_down="up";
        if(msg=="p1_up_down"){
            p1_down="down";
        if(msg=="p1_up_up"){
            p1_down="up";
    Now many of you may already see the issue, as when the down key is up, it sends the message "p1_down_up". When the up key is up, it sends the message "p1_up_up". Both messages are sending at once when neither of them are being pressed. The receiving client is, I suppose, just getting one of the signals, or perhaps neither of them. How do I make MULTIPLE signals get wrote and read over the server? I tried using an array but you can't write those apparently. Someone please help, I've been reading allover the web for a week with absolutely no answer. Thank you.

    hi Gordon,
    I want to receive the IDOC data for message type WPUUMS from a java server. Currently i am working on sample values for segments
    E1WPU01
    E1WPU02
    E1WPU03
    E1WPU04
    E1WPU05
    E1WXX01
    I am facing problems in passing the correct values .
    Its throwing a error message status 51.(Application document not posted) IDoc not fully processed.
    can you help me with some dummy data for all the fields in the above segments.
    reply ASAP
    regards
    arun
    Edited by: Arun Kumaran on Aug 22, 2008 3:33 PM

  • Sockets

    Hi,
    I'm trying to establish a socket connection to the remote server with an mobile application written in flash builder. I'm using flex 4.5 sdk.
    While running the code in mobile emulators, the socket connection is working. But after deploying the application to the phone, I get an #2031 error.
    the source code is the following:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
      <fx:Style>
        @namespace s "library://ns.adobe.com/flex/spark";
        global {
          fontSize: 32;     
      </fx:Style>
      <s:layout>
        <s:VerticalLayout horizontalAlign="center" paddingTop="20"/>
      </s:layout>
      <s:TextInput id="t" text="test test"/>
      <s:Button label="create notification">
        <s:click>
          <![CDATA[
          var s:Socket = new Socket();
          s.connect("serverName", 9999);
          s.addEventListener(Event.CONNECT, function(event:Event):void {
          trace('connected!');
          t.text = "connected";
          (event.currentTarget as Socket).writeInt(1);
          (event.currentTarget as Socket).writeUTF(t.text);
          (event.currentTarget as Socket).flush();
          (event.currentTarget as Socket).close();
          s.addEventListener(IOErrorEvent.IO_ERROR, function(event:IOErrorEvent):void {
          trace('error! ' + event.errorID);
          t.text = "error! " + event.errorID;
          s.addEventListener(ProgressEvent.SOCKET_DATA, function(event:ProgressEvent):void {
          trace('progress ');
          ]]>
        </s:click>
      </s:Button>
    </s:Application>
    What am I doing wrong here?

    On mobile platforms, the app needs to request access to the internet, and the user needs to grant that permission on installation. How to request permission depends on the platform...
    The old method (for Android and IOS):
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffe.html
    The new method (for BlackBerry PlayBook):
    http://docs.blackberry.com/en/developers/deliverables/23959/Overview_1352483_11.jsp#Access ing_secure_APIs_1524628_11

  • Socket oddities

    Hi all,
    I'm wondering if anybody has had any experience working with Sockets in Bridge and can explain some odd behaviour that I am seeing.
    I am implementing a simple mechanism for retrieving a file from a remote server using HTTP (GET). With the request, I noticed that if the connection is opened using the default "ASCII" encoding, Socket.write does not send any CR characters. ie.
    sock.write("GET /foo/bar HTTP/1.1\r\n");
    sends the message "GET /foo/bar HTTP/1.1\n". With the "binary" encoding, everything goes through ok. Is the behaviour that I am seein for ASCII correct? I do not believe that \r should be dropped.
    With respect to the response, I am trying to read the data line by line using Socket.readln. The first read will retrieve the status line
    HTTP/1.1 200 OK
    but I can't read anything else (regardless of connection encoding). After readln is called, socket.connected becomes false (expected - the server sends all data and a normal TCP connection shutdown occurs; I've verified this with a packet sniffer). The unexpected thing is that socket.eof is true! Somehow, the read buffer has become empty eventhough all data has been sent. Again, I've only called readln once. Is this a bug in Socket?
    The code that I'm using to test retrieval of data is:
    var sock = new Socket();
    sock.open("myserver:80", "binary");
    sock.write(request);
    $.writeln("!socket error : " + sock.error);
    $.writeln("!socket connected: " + sock.connected);
    $.writeln("!socket eof : " + sock.eof);
    var res = "";
    while (sock.connected || !sock.eof)
    var line = sock.readln();
    res = res + "\r\n" + line;
    $.writeln("!socket error : " + sock.error);
    $.writeln("!socket connected: " + sock.connected);
    $.writeln("!socket eof : " + sock.eof);
    $.writeln("result: " + res);
    Output looks like this:
    !socket error :
    !socket connected: true
    !socket eof : false
    !socket error :
    !socket connected: false
    !socket eof : true
    result:
    HTTP/1.1 200 OK
    Cheers,
    liam

    How did you get socket to work with the bridge? I've only gotten it to work under after effects...
    I've had luck sending GETs like this:
    conn.write("GET /loginform.php HTTP/1.1\nHost: somewhere.somewhereelse.com:88\nConnection: Keep-Alive\n\n");
    (without the wordwrap, of course...)
    That being said, I've noticed similar things. readln() only reads one line, then it thinks there's nothing else. I haven't figured out how to stop it from doing that. Also, the data I'm reading in is chunked, so I have to do a loop until my read() comes up empty. Currently I'm messing with read(1) to just get a character at a time, but it stops after the first chunk and doesn't see any more. Not very helpful, I know, but at least you aren't crazy. :)
    Have you tried sending binary data (jpegs, for instance)? Since read() puts all the data in a string, even though the open mode is set to "binary" my data is getting garbled. I'd love to know how to stop that from happening...
    -Rich

  • Multiple Java Applets hangs when run on  Win 2000 Pro SP4

    I have a Java Applets which is used to connect to a remote element using server socket connections.
    When I launch mulitple applets to connect to different elements on Win XP with SP2 OS using IE6 SP2 it works fine.
    However ,the same I do in Win2K Pro SP4 with IE6 SP1 it doesn't work. In this case all the applets hung.
    Does Java applet has platform specific problem? Any pointers regarding this problem highly appreciated.
    TIA,...Sachin

    Does anyone know if there is any bug creating socket connection from Windows 2000 pc with Service Pack 4?
    Thanks in advance.
    Biju

  • ANOTHER Java NIO Socket Bug??

    I think I'm being really dense here but for the life of me, I can't get this code to work properly. I am trying to build a NIO socket server using JDK 1.4.1-b21. I know about how the selector OP_WRITE functionality has changed and that isn't my problem. My problem is that when I run this code:
    if (key.isAcceptable()) {
         System.out.println("accept at " + System.currentTimeMillis());
         socket = server.accept();
         socket.configureBlocking(false);
         socket.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE);
    if (key.isWritable()) {
         SocketChannel client = (SocketChannel)key.channel();
         System.out.println("write at " + System.currentTimeMillis());
    if (key.isReadable()) {
         SocketChannel client = (SocketChannel)key.channel();
         readBuffer.clear();
         client.read(readBuffer);
         System.out.println("read at " + System.currentTimeMillis());
    }the isWritable if statement will always return (which is fine) and the isReadable if statement will NEVER return (which is most certainly NOT FINE!!). The readBuffer code is there just to clear out the read buffer so isReadable is only called once per data sent.
    This SEEMS to be a bug in how the selector works? I would expect to see isReadable return true whenever data is sent, but that is not the case. Now here is the real kicker ;) Go ahead and change this line:
    socket.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE);to this:socket.register(selector, SelectionKey.OP_READ);And now it appears that isReadable is running as expected?! To let people run this code on their own, I have uploaded a copy of the entire java file here:
    http://www.electrotank.com/lab/personal/mike/NioTest.java
    Please forgive the code, it's just the smallest test harness I could make and much of it is lifted from other posts on this forum. You can test this by using Telnet and connecting to 127.0.0.1:8080. You can test the isReadable piece by just typing in the Telnet window.
    Someone else has listed something as a bug in the Bug Parade, but the test case is flawed:
    http://developer.java.sun.com/developer/bugParade/bugs/4755720.html
    If this does prove to be a bug, has someone listed this already? Is there a nice clean workaround? I'm getting really desperate here. This bug makes the NIO socket stuff pretty unusable. Thanks in advance for the help!!
    Mike Grundvig
    [email protected]
    Electrotank, Inc.

    Yeah, isReadable crashed for me too.
    My solution was to not call it. I set up two selectors for the two operations I wanted notifying (accept and read) and used them independently in different threads. The accept thread passes them over to the read thread when they're accepted.
    This way I don't need to call isReadable since it is bound to be readable otherwise it wouldn't have returned, as read is the only operation I'm being notified about.
    --sam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Socket Flush Bug in Windows (JRE1.4.2)

    It may be a bug or a OS (windows) specific issue.
    The problem is:
    You have a socket and an OutputStream (DataOutputStream or
    BufferedOutputStream).
    If you do two write/flush in a loop, the second write
    one will be stuck in the underlying socket buffer.
    And, no matter what you do, you cannot flush it. I tried everything,
    even getFD().sync(), but it did not work. (SyncFailedException)
    Then when you do another write/flush (the third one) the second one
    finally goes to the server. But now you have the third one stuck !!!
    I just found out that if you put a Thread.sleep(100) in between the
    write/flush, it works !!!! But that's scary.
    Another possible workaround is to avoid multiple writes, in other
    words, never do a write in a loop. If you need to send three byte
    arrays, put them all in a single byte array and send the whole thing
    at once, in a single write. Or use a BufferedOutputStream for that matter.

    Thank you for your reply !!!
    For my surprise, the problem is not with the flush !!!! I am 99% sure this is a bug. Some other people told me it does not happen with Linux.
    Look what I did:
    BufferedOutputStream bos = new BufferedOutputStream(socket.getOutputStream());
    for(int i=0;i<2;i++) bos.write(bytearray); // buffering here !!!!
    bos.flush(); // send the whole thing at once !!!!
    Guess what happened ? IT DID NOT WORK AGAIN !!!!
    The second bytearray got stuck in the socket buffer.
    Now if you do this:
    for(int i=0;i<2;i++) {
    bos.write(bytearray); // buffering here !!!!
    Thread.yield();
    bos.flush(); // send the whole thing at once !!!!
    It works !!! This is very strange.
    EJP, I agree with you, but the situation I am describing should never happen. I must be able to tell the socket to send its contents NOW. It cannot hold its bytes forever, until something else comes along in the stream. Agree ?
    Whenever I have time I will write a test case to isolate the problem.
    Sergio

  • Socket bug ?

    I've programmed a http-chat-server in java and sometimes it hangs itself up when writing to a socket. I checked with jdb:
    (JDK 1.4.0_01 on linux)
    thread x
    where[1] java.net.SocketOutputStream.socketWrite0 (native method)
    [2] java.net.SocketOutputStream.socketWrite (SocketOutputStream.java:92)
    [3] java.net.SocketOutputStream.write (SocketOutputStream.java:126)
    [4] java.io.PrintStream.write (PrintStream.java:258)
    [5] sun.nio.cs.StreamEncoder$CharsetSE.writeBytes (StreamEncoder.java:334)
    [6] sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer (StreamEncoder.java:403)
    [7] sun.nio.cs.StreamEncoder.flushBuffer (StreamEncoder.java:113)
    [8] java.io.OutputStreamWriter.flushBuffer (OutputStreamWriter.java:169)
    [9] java.io.PrintStream.write (PrintStream.java:305)
    [10] java.io.PrintStream.print (PrintStream.java:448)
    [11] gogi.yace.User.send (User.java:130)
    [12] gogi.yace.Core.userSay (Core.java:697)
    [13] gogi.yace.Core.execute (Core.java:53)
    [14] gogi.yace.Room.saywithig (Room.java:87)
    [15] gogi.yace.Core.roomSayIg (Core.java:660)
    [16] gogi.yace.Core.execute (Core.java:51)
    [17] gogi.yace.InputParser.evaluate (InputParser.java:172)
    [18] gogi.yace.YaCE.gotInput (YaCE.java:143)
    [19] gogi.yace.InputSck.run_sub (InputSck.java:139)
    [20] gogi.yace.InputSck.run (InputSck.java:89)
    It just doesn't return from socketWrite0, and no execption is thrown and nothing happens even if i wait for hours!
    It usually happens once a day (then i have to restart the server) and i have no idea why.
    Is this a socket bug? Do you know what i could do?
    Thanks
    GoGi

    You say it will hang if on the other end no one reads
    from it?
    Well is there any way to check that?Not really
    And what happens to the threads when i use separate
    threads for sending? They will never end and in a few
    days i have 100 running threads which are all hangingagain, not really, because you can set a timeout in another thread, and if it wakes up and the message hasn't been sent, you close the socket, which should wake your other threads up

  • Couldn't read from socket error: Is this a bug in Java?

    I have been facing this grave problem for a long time now. After establishing a socket connection with some server:port say 207.123.17.20:1865, I get this error "Couldn't read from socket" as an IOException. I can neither read or send any packets to the server after receiving this error. On checking whether the socket connection is alive or not, I print socket.getAddress() and it returns me the ip of the server to which it is connected. The specification says that receiving this error means the socket was closed by the server. If it so then how I am able to print the server address after receiving this error? How can I get around this problem? Plz. help...

    watertownjordan said:
    If your computer (client) killed the connection, it should throw an error >pointing to the OS closing the connection. but what if my client app cntrl alt del while the server is waiting to here from the client.
    my client may sit idle for hours and then contact again. i want to keep their socket connected but if they cntrl alt del then i want to close the socket so the thread on the server side can be exited.
    the way i solved this was to send an "i'm still here" message to the serv in a timer every 10 seconds and set the time out on the server side to 30 seconds.
    i used a syncronized boolean variable like so:
        volatile private boolean out1busy = false;
        private synchronized boolean getOut1busy(){
         return out1busy;
        private synchronized void setOut1busy(boolean on){
         out1busy = on;
        }then in the timer i do this
            while (getOut1busy()) try { Thread.sleep(40); } catch (InterruptedException ex) {}
            setOut1busy(true);
            lobbyOut.println("-1");
            setOut1busy(false);it seems to work fine but the loop using the thread.sleep does not seem right and i know very little about this all.
    i'm basically asking the same thing as Chintan.Kanal
    Is there any way I can test whether the socket connection is alive from the server side?
    does my approach above have flaws.
    again it seems to work but i am not very Java savy lol.

  • BUG ? : No more data to read from socket

    I have a problem while using the CURSOR function in a xsql:query with a where clause and an order by :
    Example :
    My xsql file :
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
    select d.deptno as deptno, d.dname,
    CURSOR( select empno,ename
    from emp
    where deptno = d.deptno) as emps
    from dept d
    where deptno < 40
    order by d.deptno desc
    </xsql:query>
    And my obtained result is :
    <xsql-error code="17410" action="xsql:query" xsql-timing="2025">
    <statement>select d.deptno as deptno, d.dname, CURSOR( select empno,ename from emp where deptno = d.deptno) as emps from dept d where deptno < 40 order by d.deptno desc</statement>
    <message>No more data to read from socket</message>
    </xsql-error>

    This problem still exists in OWB 11g R2. I hit this same issue yesterday. Not sure why its claimed to be resolved

  • XML Socket bug or FL 2.1 WM5 limitation?

    The following defect (?) was detected when socket is trying
    to connect with any IP except 'NULL' or '127.0.0.1'. The error
    message is 'Alert. Error:ActionScript Stuck'. Test device -
    Qtek-8300. Emulator FL 2.1 and BREW devices handle connect error
    event correctly.
    Script example is in attach.
    Alex

    Hi,
    we havent encountered this in our in-house testing. We will
    recheck on the
    same device and get back to you.
    Regards,
    Vijayan.
    "netsoul" <[email protected]> wrote in
    message
    news:eh9u41$cgj$[email protected]..
    > The following defect (?) was detected when socket is
    trying to connect
    > with any
    > IP except 'NULL' or '127.0.0.1'. The error message is
    'Alert.
    > Error:ActionScript Stuck'. Test device - Qtek-8300.
    Emulator FL 2.1 and
    > BREW
    > devices handle connect error event correctly.
    >
    > Script example is in attach.
    >
    > Alex
    >
    >
    > var url:String = '127.0.0.2';
    > // var url:String = '127.0.0.1';
    > // var url:String = null;
    > var socket:XMLSocket = new XMLSocket()
    > socket.onConnect = function (success:Boolean) {
    > if (success) {
    > trace ("Connection succeeded!");
    > } else {
    > trace ("Connection failed!");
    > }
    > }
    > if (!socket.connect(url, 2000)) {
    > trace ("Connection failed!");
    > }
    >

  • Weird socket bug, 'Error #2031: Socket Error'

    I'm putting together an application which opens a connection
    to a server, sends a chunk of binary data and then closes the
    connection. When I run the application without handing
    IOEventError, I get the socket error message below but the data
    sends. When I handle IOEventError, I get the same message passed to
    the handler but no data is sent. When I capture TCP data during the
    connection, you can that without the handler a '[PSH, ACK]' packet
    of length 29 (my data) is sent out. With the handler, a '[FIN]'
    packet is sent instead. I've pasted the errors, code and TCP
    traffic below.
    Has anyone else encountered this socket weirdness? How do I
    figure out what this error message means?
    Thanks for the help!
    -J. Flier
    Error message to the console with no handler (but data
    sends): "Error #2044: Unhandled IOErrorEvent:. text=Error #2031:
    Socket Error.
    at handleSendPacketClick()[src\Test.mxml:156]
    at Test_Button2_click()[\src\Test.mxml:333]"
    Error message to the handler (no data sends): "IOErrorEvent
    type="ioError" bubbles=false cancelable=false eventPhase=2
    text="Error #2031: Socket Error. URL: 192.168.220.128"
    errorID=2031"
    TCP traffic with no handler:
    1 0.000000 192.168.220.1 192.168.220.128 TCP timelot > cbt
    [SYN] Seq=0 Win=65535 Len=0 MSS=1460
    2 0.000484 192.168.220.128 192.168.220.1 TCP cbt > timelot
    [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460
    3 0.000542 192.168.220.1 192.168.220.128 TCP timelot > cbt
    [ACK] Seq=1 Ack=1 Win=65535 Len=0
    4 0.005418 192.168.220.1 192.168.220.128 TCP timelot > cbt
    [PSH, ACK] Seq=1 Ack=1 Win=65535 Len=29
    5 0.005615 192.168.220.128 192.168.220.1 TCP cbt > timelot
    [ACK] Seq=1 Ack=30 Win=5840 Len=0
    6 2.410136 192.168.220.1 192.168.220.128 TCP timelot > cbt
    [FIN, ACK] Seq=30 Ack=1 Win=65535 Len=0
    7 2.450241 192.168.220.128 192.168.220.1 TCP cbt > timelot
    [ACK] Seq=1 Ack=31 Win=5840 Len=0
    8 2.486507 192.168.220.128 192.168.220.1 TCP cbt > timelot
    [FIN, ACK] Seq=1 Ack=31 Win=5840 Len=0
    9 2.486563 192.168.220.1 192.168.220.128 TCP timelot > cbt
    [ACK] Seq=31 Ack=2 Win=65535 Len=0
    TCP traffic with handler:
    17 438.448287 192.168.220.1 192.168.220.128 TCP dvt-data >
    cbt [SYN] Seq=0 Win=65535 Len=0 MSS=1460
    18 438.448629 192.168.220.128 192.168.220.1 TCP cbt >
    dvt-data [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460
    19 438.448683 192.168.220.1 192.168.220.128 TCP dvt-data >
    cbt [ACK] Seq=1 Ack=1 Win=65535 Len=0
    20 438.449489 192.168.220.1 192.168.220.128 TCP dvt-data >
    cbt [FIN, ACK] Seq=1 Ack=1 Win=65535 Len=0
    21 438.451503 192.168.220.128 192.168.220.1 TCP cbt >
    dvt-data [ACK] Seq=1 Ack=2 Win=5840 Len=0
    22 438.452759 192.168.220.128 192.168.220.1 TCP cbt >
    dvt-data [FIN, ACK] Seq=1 Ack=2 Win=5840 Len=0
    23 438.452793 192.168.220.1 192.168.220.128 TCP dvt-data >
    cbt [ACK] Seq=2 Ack=2 Win=65535 Len=0
    var socket:Socket=new Socket();
    // First we generate our packet
    msg=generateMessage();
    // Then we open a connection
    //socket.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
    socket.connect(backendIPTextInput.text, int(textInput.text));
    // Finally we send the packet
    socket.writeBytes(msg);
    socket.flush();
    socket.close();

    Having spent three days trying to run this down, I'm going to start by saying that I'm honestly surprised no ones put together a page that says, "Oh hey, before you use XML sockets here's 150 things you need to know first."  Or maybe someone did put that page together but I couldn't find it.  So in the interest of saving someone the big hassle I just had, here's what you might be doing wrong.
    Start here:
    http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dic tionary860.html
    Then have a look at this, particularly the example:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/XMLSocket.html
    Now you might be tempted to skip all of the adding of those event listeners, but if you do if any kind of communication problem arises in the connection Flash won't know how to handle it and you'll get Error #2031 or #2044 or both.
    But wait, that's not all!  You also have to come up with some way to let the PLAYER (not your application, not the sever) know that it's allowed to communicate on the port, and for that you need this document:
    http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
    Seriously, if this helps you, please let me and Adobe know.

  • HT1349 I've got a dent on my iPad 2 back casing near the head phone socket it's not huge but it's really bugging me , would I get a replacement iPad?

    I had a very small dent when I got the iPad for my birthday under a week ago and now it's got bigger, is there any chance of getting either a replacement back case or a new iPad without a dent?

    I would act soon if it really bothers you.  Your unconditional return/exchange period is 14 days from receipt.  After that, it would be a warranty issue, and if determined to be purely cosmetic, might not get any action at all.  And if determined worthy of replacement, the normal thing for a warranty replacement is a factory refurbished unit, not a brand new one.
    If within your 14 days, you could just take it in to an Apple store and swap it for a new one (there is no longer any restocking fees if returning or exchanging within that 14 day window).

Maybe you are looking for

  • How to disable Time Machine from backing up to hard drive

    Mountain Lion (OSX 10.8) will not install onto iMac (under OSX 10.7.4) because: "hard drive is Time Machime backup disk" error message.  However, TM Preferences does not show the iMac HD as a TM backup Location Option - it only shows the LaCie Extern

  • I just converted a document from Word to PDF and the URL links don't work.How can the links to work?

    Anyone know how to get the links to work in a PDF that was converted from Word?

  • Help with apache mod_perl

    I'm in the process of teaching myself perl, and I've also just set up a server. I'd like to combine my efforts .    I'd like to know how to set up apache with mod_perl. I gather it will probably need some sort of recompilation? I also don't see a mod

  • Error Referencing Old CIFS Shares

    Previously I used to use CIFS to connect to my shares on my NV+, but I've switched to AFP. For some reason, something in Lion is still trying to get the CIFS shares and so when I open random applications such as Garage Band and others that use the me

  • [JS] Editable Dropdown

    Is it possible to have a dropdown that is editable as you have when you click Save Preset... in the New Document dialog? ScriptUI CS3 and CS4