LocalConnection send not working consistently

Hi
I facing an issue with LocalConnection.send.
I have two AIR applications (both on the same local m/c) and there are about 6000+ messages sent from one application to another via LocalConnection.send.
Each message is less than 800 bytes. The messages to be sent are queued and each one is sent only after StatusEvent of the one currently sent is received.
This sometimes works perfectly fine i.e. all 6000+ messages are  successfully sent from one App to the other but at times many of the messages fail (about 300+) to get sent....the send API throws error status but provides no reason why it failed. And once it starts failing all subsequent messages fail.
What could be the possible reasons why localconnection send works fine at times and at times it throws error for the same message thats being sent ??

hi
ive had problems with this too - i found that sometimes the old connection (eg from a previous test movie) was still 'live' even though no swfs were running and this would stop the connection working the next time i did test movie.
i was connecting an AS2 swf and an AS3 swf in the browser so a different scenario to yours but it could be the same 'problem'?

Similar Messages

  • NetStream.send not working in Flash Player 11.2 Beta with Cirrus, Please confirm if it is a bug

    Title
    NetStream.send not working in Flash Player 11.2 Beta with Cirrus, Please confirm if it is a bug or feature
    Description
    Problem Description:
    NetStream.send can not send data to peerstreams when using with cirrus. Conflict with documents.
    Sorry for tag the build as 11.0.1.3 while the bug is actually on 11.2 beta since the bug report system didn't have 11.2 beta yet.
    If you are not responsible for 11.2 beta bug fix, please help a hand to handle this bug to 11.2 team.
    This bug is "killing" to your application, so we really appreciate your help. Thanks.
    ==Publisher==
    nc.connect("rtmfp://");
    var ns:NetStream = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);
    ns.publish("sendtest");
    ...//after connection success.
    ns.send("clientfunction", "ok"); // this line cannot reach subscribers. even if subscribers have client object correctly.
    ==Subscriber==
    nc.connect("rtmfp://");
    var ns:NetStream = new NetStream(nc, cirrusid);
    var client:Object = new Object();
    client.clientfunction = clientfunction; // target function
    ns.client = client;
    ns.play("sendtest");
    Steps to Reproduce:
    1. compile the code in the attachment to SendTestExample.swf (not be able to paste it here)
    2. run it under flash player 11.2.202.19 beta
    3. run it under flash player 11
    Actual Result:
    HeartBeat is:
    Start HeartBeat:
    send hello
    send hello
    send hello
    which means NetStream.send was not able to call "clientfunction" as expected.
    Expected Result:
    Start HeartBeat:
    send hello
    in client function: hello
    send hello
    in client function: hello
    send hello
    in client function: hello
    which can call into the clientfunction as flash player 11 did.
    Any Workarounds:
    I can not find it out since it's an api level bug. But this can be very important for lots of applications which rely on send to do rpc.
    Test Configuration
    IE8, Firefox under Windows 7
    Also have problem under Windows XP (but not well tested on this platform)
    App Language(s)
    ALL
    OS Language(s)
    ALL
    Platform(s)
    Windows 7
    Browser(s)
    Internet Explorer 8.0
    ==Attachment==
    package {
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.NetStatusEvent;
        import flash.events.TimerEvent;
        import flash.media.Video;
        import flash.net.NetConnection;
        import flash.net.NetStream;
        import flash.text.TextField;
        import flash.utils.Timer;
        import flash.utils.setTimeout;
        public class SendTestExample extends Sprite
            public static var statusArea:TextField;
            var ncServer:NetConnection = new NetConnection();
            var nsServer:NetStream;
            var ncClient:NetConnection = new NetConnection();
            var nsClient:NetStream;
            var timer:Timer = new Timer(1000);
            public function SendTestExample() {
                ncServer.addEventListener("netStatus", onNCStatusServer);
                ncServer.connect("rtmfp://p2p.rtmfp.net","99f72ccbed0948d7589dc38a-3ce1b2616680");
                statusArea = new TextField();
                status("status");
                statusArea.x = 0;
                statusArea.y = 0;
                statusArea.border = true;
                statusArea.width = 200;
                statusArea.height = 350;
                addChild(statusArea);
            function onNCStatusServer(event:NetStatusEvent):void {
                status("Step 1:");
                status("server: " + event.info.code);
                status("id: " + ncServer.nearID);
                switch (event.info.code) {
                    case "NetConnection.Connect.Success":
                        nsServer = new NetStream(ncServer, NetStream.DIRECT_CONNECTIONS);
                        nsServer.addEventListener(NetStatusEvent.NET_STATUS, onNSStatusServer);
                        nsServer.publish("sendtest");
                        ncServer.removeEventListener(NetStatusEvent.NET_STATUS, onNCStatusServer);
                        ncClient.connect("rtmfp://p2p.rtmfp.net","99f72ccbed0948d7589dc38a-3ce1b2616680");
                        ncClient.addEventListener("netStatus", onNCStatusClient);
                    case "NetStream.Publish.BadName":
                        //status("Please check the name of the publishing stream" );
                        break;
            function onNCStatusClient(event:NetStatusEvent):void {
                status("Step 2:");
                status("client: " + event.info.code);
                status("id: " + ncClient.nearID);
                switch (event.info.code) {
                    case "NetConnection.Connect.Success":
                        nsClient = new NetStream(ncClient, ncServer.nearID);
                        var c:Object = new Object();
                        c["clientfunction"] = clientfunction;
                        nsClient.client = c;
                        nsClient.play("sendtest");
                        ncClient.removeEventListener(NetStatusEvent.NET_STATUS, onNCStatusClient);
                        //setTimeout(sendHello, 5000);
                    case "NetStream.Publish.BadName":
                        //status("Please check the name of the publishing stream" );
                        break;
            protected function onNSStatusServer(event:NetStatusEvent):void {
                status("nsserver: " + event.info.code);
                if (event.info.code == "NetStream.Play.Start") {
                    status("Start HeartBeat:");
                    this.timer.addEventListener(TimerEvent.TIMER, function (e:Event):void {
                        sendHello();
                    this.timer.start();
            protected function sendHello():void {
                status("send hello");
                nsServer.send("clientfunction", "hello");
            protected function status(msg:String):void
                statusArea.appendText(msg + "\n");
                trace("ScriptDebug: " + msg);
            protected function clientfunction(event:Object):void {
                status("in client function: " + event);

    Thanks for reporting. I can reproduce the bug in house. We will investigate.
    Calise

  • Wifi with stock kernel driver rtl8192ce not working consistently

    Hi,
    My wifi card RTL8188CE does not work consistently with kernel driver rlt8192ce. The problem that i observe is that after some time ~1hr wifi devices get disconnected and are not able to reconnect. On restarting wifi using systemctl restart hostapd sometimes the system hangs.
    Here are the outputs.
    03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
    Subsystem: ASUSTeK Computer Inc. Device 84b5
    Kernel driver in use: rtl8192ce
    Kernel modules: rtl8192ce
    Logs
    Jan 22 19:30:56 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:56 Blitz-4 kernel: [color=red]rtl8192ce 0000:05:00.0: swiotlb buffer is full (sz: 105 bytes)[/color]
    Jan 22 19:30:56 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:56 Blitz-4 kernel: rtl8192ce 0000:05:00.0: swiotlb buffer is full (sz: 105 bytes)
    Jan 22 19:30:56 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:57 Blitz-4 kernel: rtl8192ce 0000:05:00.0: swiotlb buffer is full (sz: 105 bytes)
    Jan 22 19:30:57 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:57 Blitz-4 kernel: rtl8192ce 0000:05:00.0: swiotlb buffer is full (sz: 105 bytes)
    Jan 22 19:30:57 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:57 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:57 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:05:00.0
    Jan 22 19:30:57 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:57 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:57 Blitz-4 kernel: DMA: Out of SW-IOMMU space for 105 bytes at device 0000:05:00.0
    Jan 22 19:30:58 Blitz-4 kernel: BUG: unable to handle kernel paging request at 000060240000801d
    Jan 22 19:30:58 Blitz-4 kernel: IP: [<ffffffff811b29a6>] __kmalloc+0x86/0x1c0
    Jan 22 19:30:58 Blitz-4 kernel: PGD 0
    Jan 22 19:30:58 Blitz-4 kernel: Oops: 0000 [#1] PREEMPT SMP
    Jan 22 19:30:58 Blitz-4 kernel: Modules linked in: nls_iso8859_1 nls_cp437 vfat fat ctr ccm fuse bridge stp llc snd_hda_codec_hdmi arc4 mousedev hid_generic coretemp hwmon ppdev intel_rapl x86_pkg_temp_thermal intel_powerclamp kvm_intel rtl8192ce rtl_pci rtl8192c_common rtlwifi kvm mac80211 crct10dif_pclmul crc32_pclmul evdev crc32c_intel mac_hid uas ghash_clmulni_intel usb_storage usbhid cfg80211 hid snd_hda_codec_realtek snd_hda_codec_generic i915 aesni_intel iTCO_wdt iTCO_vendor_support aes_x86_64 lrw snd_hda_intel gf128mul drm_kms_helper rfkill snd_hda_controller glue_helper ablk_helper psmouse drm snd_hda_codec cryptd pcspkr serio_raw snd_hwdep intel_gtt snd_pcm i2c_i801 r8168(O) i2c_algo_bit i2c_core snd_timer parport_pc tpm_infineon snd fan thermal tpm_tis parport mei_me tpm soundcore battery mei video shpchp
    Jan 22 19:30:58 Blitz-4 kernel: button lpc_ich processor sch_fq_codel ext4 crc16 mbcache jbd2 sd_mod atkbd libps2 ahci libahci libata xhci_pci ehci_pci xhci_hcd ehci_hcd scsi_mod usbcore usb_common i8042 serio
    Jan 22 19:30:58 Blitz-4 kernel:CPU: 3 PID: 1238 Comm: Cache2 I/O Tainted: G O 3.18.2-2-ARCH #1
    Please suggest any workaround/modules.

    Same problem to me. lspci output:
    07:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
    and logs:
    Apr 04 16:06:29 nzk kernel: rtl8192ce 0000:07:00.0: swiotlb buffer is full (sz: 9100 bytes)
    Apr 04 16:06:29 nzk kernel: DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:07:00.0
    Apr 04 16:06:29 nzk kernel: rtl8192ce 0000:07:00.0: swiotlb buffer is full (sz: 9100 bytes)
    Apr 04 16:06:29 nzk kernel: DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:07:00.0
    Apr 04 16:06:29 nzk kernel: rtl8192ce 0000:07:00.0: swiotlb buffer is full (sz: 9100 bytes)
    Apr 04 16:06:29 nzk kernel: DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:07:00.0
    Apr 04 16:06:29 nzk kernel: rtl8192ce 0000:07:00.0: swiotlb buffer is full (sz: 9100 bytes)
    Apr 04 16:06:29 nzk kernel: DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:07:00.0
    A bug report submitted to redhat bugzilla https://bugzilla.redhat.com/show_bug.cg … id=1203241 suggests it may be caused by a bug in the rtl8192ce kernel module since linux 3.17.7. I hope this problem could be solved as quickly as possible.
    Last edited by mike_nzk (2015-04-04 08:33:59)

  • Power button not working consistently

    Have owned my Macbook Air 13" for almost a year.  Over the last few months, I've had some issues with the power button when in standby mode.   I think this happened even before I updated to OS X Yosemite.  Sometimes when I go to turn my computer on, the button is  completely unresponsive.  I have to press the button over and over again.  Sometimes I hold it down firmly and it turns on, other times it seems to turn on after a light touch.  Any suggestions as to what I'm doing wrong?  Thanks-

    LauraTX1 wrote:
    The power button on my Tungsten E2 not working consistently.  What do I need to do to it?  Hard to turn my palm on when the button does not work properly.
    Post relates to: Tungsten E2
    Just an FYI Laura - you can press any of the hard buttons on your Palm and it will turn on.   Many of try to avoid using the fragile power button, choosing instead to use a hard button to turn on, and the normal timeout to turn off. 
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • The back button does not work consistently, and rarely works if I open an attachment...any ideas on fixing this?

    The back button does not work consistently, and rarely if ever when I open an attachment. Does anyone have a fix for this?
    == This happened ==
    Not sure how often
    == I installed firefox

    Same problem here: I never had a problem with the previous versions and now I don't even get my homepage when I click Firefox. Instead, I am getting a blank screen that says "New Tab", only after I click the "Home" symbol I get my Homepage (Yahoo). The browser - back and browser forward button don't work anymore, very annoying. Normally a newer version should be an improvement but it looks like Mozilla really messed up with this "improvement". probably I am going to use Google chrome from now on.

  • Command-C is not working consistently to.

    Command-C is not working consistently for me. In multiple apps, but mostly in Word, I find myself pressing Command-C and then Command-V to paste and what I paste is the LAST thing I copied, not the most recent. I sometimes have to repeat teh sequence several times before it pastes the thing I want it to. Any suggestions? I tried searching for this problem, but didn't find any relevant discussions. Thanks!

    Hello eeinna,
    I was thinking it might be a good idea to reset the SMC and the PRAM on the computer. Here are the 2 articles for those processes:
    About NVRAM and PRAM
    http://support.apple.com/kb/ht1379
    And
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    If needed I would also recommend testing the issue in a new user, and following the directions in this article as well based on what you find.
    Isolating an issue by using another user account
    http://support.apple.com/kb/TS4053
    All the best,
    Sterling

  • Clickpad Right Click not Working Consistantly

    I just purchased an HP laptop with a Clickpad and reviewed your documentation for what areas on the pad to use for clicking however I can't seem to get a consistent right click even when I click in the area indicated by the diagram.  I can be almost in the bottom right corner of the pad's surface and still get a left click response.
    Is there a trick to it I am missing or do I have a dud?

    Hello Kyraoko,
    Welcome to the HP Forums!
    I understand the right-clicking action on the touchpad, of your notebook, is not working properly. It is likely a hardware issue, to be honest. However, please try the following steps before assuming anything:
    1. Tap the upper-left corner of the touchpad a couple of times to turn it off, then turn it on. This is considered resetting the touchpad.
    2. Performing a Hard Reset or Forced Reset is the next step. A hard reset clears driver instructions, recent configurations, etc. This forces the hardware to reread all instructions from the drivers and software stored within Windows.
    3. Update the mouse/touchpad driver. These instructions will guide you along the right path:
    a. Go to the HP Drivers and Downloads webpage. Enter your computer model number and then click Go .
    b. Select your computer model from the list of results.
    c. Select your operating system from the drop down menu and then click Next.
    d. Scroll down to select the driver category "Driver - Keyboard, Mouse and Input Devices".
    e. Click the Download button next to the appropriate TouchPad or ClickPad driver. The file downloads to your Downloads folder.
    f. Open your Downloads folder and double-click to install the latest driver. Follow on-screen instructions to complete the installation.
    Source: Using and Troubleshooting the TouchPad or ClickPad (Windows 8)
    4. If that doesn't work, we will have to try a more direct approach of reinstalling the mouse driver:
    a) Go into Device Manager, then "Mice and other pointing devices".
    b) Right-click on the touchpad driver, and select "Uninstall".
    c) Restart the computer. This will force a new driver to be written based on the detected hardware.
    5. Try connecting a USB mouse to the computer. Test it to see whether or not it is working properly.
    If those steps do not help, then I would call HP phone support so they can physically address the hardware of the touchpad. You can utilize this website to learn how to contact HP appropriately, based on your region: Contact HP Worldwide
    Please let me know if you have any other questions or concerns. Thanks for posting, and have a great day!
    Mario
    I worked on behalf of HP.

  • Web Gallery, previous/ next not working consistently

    First time I've seen this:    next and previously are not working good. Some work in the gallery, some don't.
    Reboot Firefox, some different ones work, some dont. It's worrisome. I'm sending this to people- any tips?

    .Mac email can be set up two different ways on the iPhone. For "Send to Web Gallery" button to appear when clicking on the action button while viewing a photo, you must have your .Mac email set up as IMAP. This is the default setup for a .Mac email account.
    If you take the time to manually set up your .Mac email as POP, then you will not have the "Send to Web Gallery" option and you will be unable to successfully email into your web gallery even if all else is set up correctly.
    To check to see how you have .Mac email set up on your iPhone, go to the Home Screen, tap Settings, tap Mail, tap your .Mac account name, tap Advanced, move down on the page, and make sure you see "IMAP Path Prefix" setting (it can be blank and does not need to be changed). If the "IMAP Path Prefix" is there, then you do indeed have your .Mac email set up as IMAP on your iPhone.
    If you do have it set up as a POP account, you can delete that mail account by selecting the red Delete Account button when viewing your email account as listed in Settings.
    To add your .Mac email account as an IMAP account, from the Home Screen, tap Settings, tap Mail, tap Add Account..., tap .Mac, and fill out the fields with your information, tap Save and it will verify access to your .Mac email account.

  • Connecting projectors via VGA to MBA 2012 not working consistently?

    I am a trainer working around uk and Europe. I keep finding displays that will not work with my MBA. What happened to plug and play?....

    I have used macs for 10 years
    Okay, so have I, and I keep having surprises and keep learning. So what are you trying to say?
    Just will not show up on projected screen despite me changing settings,detecting display,restarting etc
    I sometimes find defect cables and connectors on site, I'm sure you spot those as well. Who to blame. Other than that, I've always got some signal onto the screen, even if not pretty colors, ideal contrast and brightness, or perfectly scaled. Or simply at a lower resolution and/or refresh rate than what I've been wishing for.
    With OS X's UI regarding external displays basically not having changed since 10.4, we sure have no trouble with handling our machines, and while our Windows friends are still trying to remember where all to press and click, I'm up and running or having a coffee.
    Interfaces have changed, but the number of adapters has grown accordingly, and projectors and displays have gotten more "receptive" as well. So, not much in the way here, either.
    The gear that is a royal pain in-you-know-where to work with now, has been the same before... all the time...
    What else - any more specific description, e.g. a typical showcase you could tell us of? Thanks.

  • Face Time not working consistently from Kabul, Afghanistan.  Any ideas?

    I am in Kabul, Afghanistan and have an iPhone 4S that I can Face Time with my family successfully.  They are in the US.  I am calling their iPhone 4 and Macs.  When I try calling other iPhones and/or Mac's (also in the US), I get the error message that their phones are not available.  From email exchanges I have made, with the parties I am trying to call, it appears that they have done everything they need to do to Face Time successfully.  In fact, they are able to Face Time with everyone else but me.
    Where I am located, in order for Face Time to work, I have to have the wifi turned on, iPhone in Airplane mode, and cellular services turned off.  Any other combination will not work.  The fact that I can Face Time with some people tells me that this procedure does work.
    The only difference I can see exists in my Contact list.  People that I can face Time with, have a "Movie Camera Icon" on their contact page Face Time button.  Everyone else does not.  Does this mean anything?

    Hi there lilalex2,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/ts3367
    -Griff W. 

  • Bindable XML not working consistently...

    Hi,
    I've started on an element for a game I'm developing, and I encountered a problem: JavaScript was not gonna get the job done, so I went for Flex.
    The element in question consists of boxes with items in. Kind of like a storage area. Each box is an mx:Panel element with an mx:Grid inside for the slots.
    The mx:Panel's title is bound to boxes..name, where boxes is an XML object loaded from http://pokefarm.adamhaskell.net/boxtest.xml. This works.
    What doesn't work is the mx:Image elements in each mx:GridItem. The image's source (for Item 1 in Box 0) is bound to boxes..box0.pkmn1.img. When compiling, I am told that the 'src' attribute could not be resolved.
    Any idea what's happening?
    Thanks.

    mx:Image has a "source" attribute, not "src"
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • File sending not working

    i have sent files to someone and they say they cant download the files because it says "connecting". i then tried to download these files but then it said "connecting" when i tried to download them. i really need this to be fixed because ive had to uninstall everything from my pc and i thought by sending these files i could keep some valuable data. i would be grateful if skype could somehow fix this and send me my files again Thank you for your time

    If the files in question are not image files (.jpg, .png), then for file transfer to work, both the sender and the receiver must be online on Skype at the same time. These files are transferred computer-to-computer and are not saved on any central server. If you don't any longer have these files on your computer, then they are lost forever.

  • LoadVars.send() not working

    here my code
    var sendData:LoadVars = new LoadVars();
    sendData["dataID"] = "MyDataID";
    sendData.send("
    http://www.mydomain.com/submit.php",
    "_self", "POST");
    when i'm running the swf and the php on same server,
    everythings ok.
    once i'm moving the swf into another server with difference
    domain name
    images.mydomain.com (where the swf locate)
    www.mydomain.com (where the php page locate)
    i call the LoadVars.send() with provide it absolute path to
    www.mydomain.com,
    but there nothing happen when i press the button.
    but it work if i place my swf in www.mydomain.com
    any idea?
    thanks a lot

    Thommasc wrote:
    I once saw this :
    var firstname : String = "Thomas";
    var nickname : String = "Thommasc";
    getURL("http://.../myScript.php", "_self", "POST");
    Just give it a try ?
    Nope, that also doesn't work (same result).
    I just tested it with Flash Player 7 for PPC, gave the same results in both Opera Mobile 8.65 and Pocket IE (not sending POST data either... ).
    Got any other suggestions?

  • Transaltion in work item title not working consistently

    Hi,
    I am seeing a strange behaviour in SAP business workfplace with respect to the work item title (subject line) translation........................
    - Some prelimenary info : All work item translations for title (subject) and work item body are completly maintained
    - System : SAP ECC 6.0
    Problem being faced
    1. Workflow is trigerred by an user with English login and this generates a work item to the another users
    2. The work item receipent logs in in different langiage say german...................he then starts SBPW to check this work item
    3. The title of the work item appears in english while the same title which appears in the work item body also is shown in German (User log on language)..................
    4. The user displays (not execute) the work item........................The work item title is shown in in German.
    5. The user returns to the inbox and then the work item title changes to German language.........................
    Has any one encountered this problem.......................I looked for SAP notes but could not find any note suitable for this..........................
    I assume it is more a SBWP bug but want to gather some experience from this group
    Thanks
    Kiran

    Hi,
    This may happen due to the problem in language translation. Please maintain the language translation properly then test it agian.
    Pleae check the table HRS1206 where OTYPE = 'TS' and OBJID= 99000031 ( task number ) whether the multiple language translation is maintained or not. If not thenyou need to maintain through transaction SE63.
    Please visit below link for more details.
    http://wiki.sdn.sap.com/wiki/display/ABAP/TranslatingTaskDescriptionusingSE63
    Thanks and regards,
    SNJY

  • Client to server byte sending not working =\

    Hi.
    Im working on a simple socket server.
    The problem im having is this;
    Whenever i send anything to the server, if i read what i send it just comes up as 0, it's the same if i send something to the client.
    This is the connection when the client first connects (when loaded) and sends the version of the client and the login id.
    public void connectServer()
              try {
                   socketStream = new ClientSocket(openSocket(port));
                   if(connected) {
                        outStream = new Stream(new byte[maxBuffer]);
                        outStream.writeOffset = 0;
                        inStream = new Stream(new byte[maxBuffer]);
                        inStream.readOffset = 0;
                        outStream.writeByte(1);
                        outStream.writeWord(15);
              } catch(Exception e) {
                   e.printStackTrace();
         }And the serverside reading;
    inStream = new Stream(new byte[bufferSize]);
                   inStream.readOffset = 0;
                   inStream.writeOffset = 0;
                   outStream = new Stream(new byte[bufferSize]);
                   outStream.readOffset = 0;
                   outStream.writeOffset = 0;
                   int i1 = inStream.readUnsignedByte();
                   int i2 = inStream.readUnsignedByte();i1 would be the version and have the value of 1, i2 would be the login id with the value of 15 in this case.
    But they both display as 0.
    If someone can help i would be very gratefull and appreciative.
    Thanks.

    i_own_pking wrote:
    Serverside reading is;
    inStream.readUnsignedByte();I assume this reads a byte from the buffer,. Where does it put something into the buffer for it to read?
    Basically, stream is buffer's and bitshift's.I see. Is that all the documentation?
    Writing;
    public void writeByte(int i) {
              buffer[writeOffset++] = (byte)i;
    That puts data in a buffer. Where does it write this data somewhere?
    Reading;
    public int readUnsignedByte() {
              return buffer[readOffset++] & 0xff;
    This gets data from a buffer. Assuming there is any data in it. Otherwise its always going to get 0, until the buffer runs out.

Maybe you are looking for

  • Auto index entry generation for a range of sentences?

    Is there any way to mark a range of sentences and associate it with a particular index entry? For a lengthy book, I don't think one can really expect the text to never change, hence regenerating the index needs to continue to work even if a bit of te

  • Error While Modifying the Display Profile

    When I am trying to run the dpadmin modify command for adding the Custom JSP channel into JSPTableContainer , I get a error saying " ERROR : Failed to find channel/container : parent =JSPTableContainer,Channel/container=JSPTableContainer. "

  • Site Collection under WebApplication

    Getting below screen, any guidance for the Web App and application under it, why this is happening and its remedy.

  • RECEIVED ABNORMAL SHUTDOWN COMMAND - APPLICATION TERMINATING

    HI All, We have an Planning application and when the user is trying to perform some activity and ti involves in running some calculation Scripts. At point the application is going down and this is causing real mess. There is no .xcp file created in t

  • TPfancontrol: Yes or No? How to control fan noise?

    Hello, I am new here, got my t400s 2801-CTO a few weeks ago. Send it to repair after 2 days: I had issues with a high-pitched electric noise coming out of the speakers?(I think that many of you must have heard of this). Got it back (they replaced the