MS-7025 and JUSB 1 and 2 sockets

I'm going to buy a case that has front USB connectors
and I plan to use the JUSB1 and JUSB2 socket.
Are there any known issues?
(I remeber reading something....)
Thanks,
Bill

Check the wiring harness from the case(or rather the connector block from the case that connects to the USB header) and read the manual.
Quote from: Frankeputer
Check to see if there is a wire running from your Front USB ports to the #10 slot of your USB block which connects to the motherboard header.
USB connector block layout which corresponds to the pin layout on boards with the Intel spec for USB. Do not cut the pin on the MOBO. You are removing/cutting the wire to the connector block from the case.
2 4 6 8 10(this wire, #10, not needed)     
1 3 5 7 9(filled/key)
If you find a wire leading to the #10 spot on the block, remove that wire. My block has tabs so that you can pull the wire out, or you could snip/cut the wire leading to that position--if you cut the wire, be careful to cut the correct one and cut it in such a way that it may be repaired if you make a mistake.  Make sure you wrap the wire, the exposed end/s, you remove/cut with electrical tape so as not to accidentally cause a short. I actually folded the wire back and wrapped it.
2 posts to read--Here and Here.
This seems to be a common issue involving many different case manufacturers. I don't know how it applies to other MOBO manufacturers, but in these forums it is not limited to a specific MSI model or supported chipset(Intel or AMD).

Similar Messages

  • Non-global zones and unix sockets

    Hello, I have a problem with local zones and unix socket sharing. I've created directory in global zone for ex. /zones/shared. Added it to zones via 'add fs, type=lofs' . In one zone I'm putting mysql socket in it and I want that other local zones could use it. Is it possible to share socket between zones?
    After all my experiments I'm always getting 'can't connect to mysql ... (146)' , 146 is 'connection refused' error.

    These services are off-line in the non-global zone, which is why non of the
    rc2.d or rc3.d scripts are being run:
    offline Dec_12 svc:/milestone/multi-user-server:default
    offline Dec_12 svc:/milestone/multi-user:default
    Any idea how to enable these, and why they are offline?
    Michael
    Created a non-global zone on a Solaris 10 box.
    Boots up ok and I can login with zlogin.
    It doesn't seem to run any of the scripts in
    /etc/rc2.d or /etc/rc3.d
    I know Solaris 10 uses "Service Management Facility"
    for most services now,
    but could still run legacy scripts in /etc/init.d ?
    Also I can't get sshd to start on the non-global
    zone.
    # svcs -a |grep ssh2
    offline 11:44:58 svc:/network/ssh:default
    # svcadm enable -t svc:/network/ssh:default
    # svcs -a |grep ssh2
    offline 11:44:58 svc:/network/ssh:default
    Anyone got any ideas?
    Michael

  • IPhone 4s. IOS 7.1.1 Windows 7. Using same lead and usb socket. From yesterday my phone won't appear on computer. Will charge via usb lead. Dont have iTunes on this computer and never had.

    iPhone 4s. IOS 7.1.1 Windows 7. Using same lead and usb socket as always. From yesterday my phone won't appear on computer. Will charge via usb lead. Dont have iTunes on this computer and never had. Am now being asked if I trust this computer. This is new. Also takes longer than usual to signal it is charging. Get usual sound notification but nothing appear in computer. I long ago disables automatic notification that phone was connected. Prefer to bring it up manually.

    Within Contacts, tap Groups at top left. Make sure all contact groups are checked to show, then tap "Done" at top right.
    Within the Calendar app, tap Calendars at the bottom center of the screen. Tap on Show All Calendars.

  • Connecting case headphone and mic sockets to X

    I want to be able to connect my PC cases headphone and microphone sockets to my X-Fi (XtremeMusic). I can't use the dri've bay expansion box thing because I have a door on my case, and it's too expensi've anyway.
    The AD_EXT connection on the card has many pins. Would I be able to just connect up the pins that are used for mic and headphones
    Any ideas/advice?

    That question was answered many times around here, you need just to search...Message Edited by SoNic2367 on 07-25-2006 08:27 PM

  • Java sockets and raw sockets

    Hello!
    I have made my own file sharing program with Java sockets
    and i have read a litle bit about raw sockets also.
    What are the differences between Java sockets and raw sockets?

    raw socket can have packet types which Java does not.
    Generally if you need something useful which Java cannot do there is a utility already written which does what you want, e.g. ping and you can call that.

  • MOVED: MS-7025 and JUSB 1 and 2 sockets

    This topic has been moved to AMD64 nVidia Based board.
    As this is a 64bit nvidia board.
    https://forum-en.msi.com/index.php?topic=104932.0

    Check the wiring harness from the case(or rather the connector block from the case that connects to the USB header) and read the manual.
    Quote from: Frankeputer
    Check to see if there is a wire running from your Front USB ports to the #10 slot of your USB block which connects to the motherboard header.
    USB connector block layout which corresponds to the pin layout on boards with the Intel spec for USB. Do not cut the pin on the MOBO. You are removing/cutting the wire to the connector block from the case.
    2 4 6 8 10(this wire, #10, not needed)     
    1 3 5 7 9(filled/key)
    If you find a wire leading to the #10 spot on the block, remove that wire. My block has tabs so that you can pull the wire out, or you could snip/cut the wire leading to that position--if you cut the wire, be careful to cut the correct one and cut it in such a way that it may be repaired if you make a mistake.  Make sure you wrap the wire, the exposed end/s, you remove/cut with electrical tape so as not to accidentally cause a short. I actually folded the wire back and wrapped it.
    2 posts to read--Here and Here.
    This seems to be a common issue involving many different case manufacturers. I don't know how it applies to other MOBO manufacturers, but in these forums it is not limited to a specific MSI model or supported chipset(Intel or AMD).

  • BT Infinity - Master and Extension Sockets

    Hi all,
    Last night I got talked into signing up for BT inifnity + TV which they are due to install within the next few weeks however, i didnt realise that they have to connect the hub to the master socket which is currently located in my kitchen! My existing hub is connected to an extension socket located in the lounge and this is where I want the new hub to be located. I see that they can provide 30m of wiring but I dont want wiring all over my house! Can they make the existing outlet in the lounge the master socket and make the existing master socket the extension? (without any new wiring!). If they cant do it i will have to cancel.
    I have tried to contact BT about installation but cant seem to find a number to call.
    Thanks

    Thanks for that correction. I can understand that some of the households where instattions are undertekn must be a nightmare to work in. 
    So, provided there are no safety issues, as a rule the OpenReach engineer will install the HH5 in the location of the customer's choice without them having to pay BT £130 for moving the MS?
    To repeat, my experience like that of many other BT customers is that the OpenRreach engineers are very helpful and will move the MS subject to the caveat from Helios.
    The customer's main problem may be with the management of the order by BT customer services: my order was never closed, locking me out of My Broadband on the My BT Portal and my phone line account Anytime Calls and International Freedom add-ons were removed from My Phone after being charged x2 for them!  Two weeks  and several calls and chats with customer suppport and this is still the case. 
    BT Infinity is good though.

  • BT Infinity 2 and Master Socket.

    Hello all. We ordered our BT infinity 2 and telephone line and they said the engineer will be coming on the 13th to set things up. After looking through the installation of BT infinity I found out that it has to be connected to a master socket. This is my problem.
    My master socket is located right next to my main door and there is an extention socket in my bedroom. Can I have the master socket moved during installation ? Having a bt hub where you keep your shoes looks odd. Will the engineer relocate the master socket or change the extention socket into a a master socket or I shouldn't be expecting anything ?

    Reading through some of the posts, a lot of the installation depends on whether you get a decent engineer, luckily I did.
    My master socket was in a downstairs room and my study / office is in the room right above it. I explained to the engineer what I wanted / needed. He was a bit hesitant as he said it meant him having to drill through an external wall, No it won't as I already have a hole that talkes an extension from the master to the study, right easy he says he could convert the extension to the master and make the old master socket the extension. Great, cup of tea and a few hob nobs later job done.
    If the engineer can not do what mine did he should fit a 30m extension lead to the master socket and you can plug the hoem hub to this, my understanding is that the extension cable is pinned to skirting or wall they will not lay kit under carpet.
    Good luck
    Sholtie

  • Establishing a socket connection between a .swf file and a socket-test program (TCP/IP builder - Windows), in AS3.

    I have an issue with a college project I'm working on.
    Using Actionscript 3, I made a simple .swf program, an animated, interactive smiley, that 'reacts' to number inputs in a input-box.
    For the sake of the project, I now need to make the framework for establishing a socket connection with the smiley .swf, and another program.
    This is where I encounter issues. I have very little knowledge of AS3 programming, so I'm not certain how to establish the connection - what's required code-wise for it, that is.
    To test the connection, I'm attempting to use the "TCP/IP builder" program from windows, which lets me set up a server socket. I need to program the .swf file into a client - to recognize it, connect to it, then be able to receive data (so that the data can then be used to have the smiley 'react' to it - like how it does now with the input-box, only 'automatically' as it gets the data rather than by manual input).
    My attempts at coding it are as follows, using a tutorial (linked HERE):
    //SOCKET STUFF GOES HERE
        var socket:XMLSocket;        
        stage.addEventListener(MouseEvent.CLICK, doConnect); 
    // This one connects to local, port 9001, and applies event listeners
        function doConnect(evt:MouseEvent):void 
        stage.removeEventListener(MouseEvent.CLICK, doConnect); 
        socket = new XMLSocket("127.0.0.1", 9001);   
        socket.addEventListener(Event.CONNECT, onConnect); 
        socket.addEventListener(IOErrorEvent.IO_ERROR, onError); 
    // This traces the connection (lets us see it happened, or failed)
        function onConnect(evt:Event):void 
            trace("Connected"); 
            socket.removeEventListener(Event.CONNECT, onConnect); 
            socket.removeEventListener(IOErrorEvent.IO_ERROR, onError); 
            socket.addEventListener(DataEvent.DATA, onDataReceived); 
            socket.addEventListener(Event.CLOSE, onSocketClose);             
            stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); 
        function onError(evt:IOErrorEvent):void 
            trace("Connect failed"); 
            socket.removeEventListener(Event.CONNECT, onConnect); 
            socket.removeEventListener(IOErrorEvent.IO_ERROR, onError); 
            stage.addEventListener(MouseEvent.CLICK, doConnect); 
    // Here, the flash tracks what keyboard button is pressed.
    // If 'q' is pressed, the connection ends.
            function keyUp(evt:KeyboardEvent):void 
            if (evt.keyCode == 81) // the key code for q is 81 
                socket.send("exit"); 
            else 
                socket.send(evt.keyCode); 
    // This one should handle the data we get from the server.
            function onDataReceived(evt:DataEvent):void 
            try { 
                trace("From Server:",  evt.data ); 
            catch (e:Error) { 
                trace('error'); 
        function onSocketClose(evt:Event):void 
            trace("Connection Closed"); 
            stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); 
            socket.removeEventListener(Event.CLOSE, onSocketClose); 
            socket.removeEventListener(DataEvent.DATA, onDataReceived);
    Trying to connect to the socket gives me either no result (other than a 'connection failed' message when I click the .swf), or the following error:
    Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|/Users/Marko/Desktop/Završni/Flash%20documents/Smiley%5FTCP%5FIP%5Fv4.swf cannot load data from 127.0.0.1:9001.
        at Smiley_TCP_IP_v4_fla::MainTimeline/doConnect()[Smiley_TCP_IP_v4_fla.MainTimeline::frame1:12] 

    Tried adding that particular integer code, ended up with either errors ("use of unspecified variable" and "implicit coercion") , or no effect whatsoever (despite tracing it).
    Noticed as well that the earlier socket code had the following for byte reading:
    "sock.bytesAvailable > 0" (reads any positive number)
    ...rather than your new:
    "sock.bytesAvailable != 0" (reads any negative/positive number)
    Any difference as far as stability/avoiding bugs goes?
    So then, I tried something different: Have the program turn the "msg" string variable, into a "sentnumber" number variable. This seemed to work nicely, tracing a NaN for text (expected), or tracing the number of an actual number.
    I also did a few alterations to the input box - it now no longer needs the 'enter' key to do the calculation, it updates the animation after any key release.
    With all this considered and the requirements of the project, I now have a few goals I want to achieve for the client, in the following order of priority:
    1) Have the "sentnumber" number variable be recognized by the inputbox layer, so that it puts it into the input box. So in effect, it goes: Connect -> Send data that is number (NaN's ignored) -> number put into input box -> key press on client makes animation react. I optionally might need a way to limit the number of digits that the animation reacts to (right now it uses 1-3 digit numbers, so if I get sent a huge number, it might cause issues).
    - If the NaN can't be ignored (breaks the math/calculus code or some other crash), I need some way of 'restricting' the data it reads to not include NaN's that might be sent.
    - Or for simplicity, should I just detect the traced "NaN" output, reacting by setting the number variable to be "0" in such cases?
    2) After achieving 1), I'll need to have the process be automatic - not requiring a keyboard presses from the client, but happening instantly once the data is sent during a working connection.
    - Can this be done by copying the huge amounts of math/calculus code from the inputbox layer, into the socket layer, right under where I create the "sentnumber" variable, and modifying it delicately?
    3) The connection still has some usability and user issues - since the connection happens only once, on frame 1, it only connects if I already have a listening server when I run the client, and client can't re-connect if the server socket doesn't restart itself.
    I believe to do this, I need to make the connection happen on demand, rather than once at the start.
    For the project's requirement, I also need to allow client users to define the IP / port it's going to connect to (since the only alternative so far is editing the client in flash pro).
    In other words, I need to make a "Connect" button and two textboxes (for IP and port, respectively), which do the following:
    - On pressing "Connect", the button sets whatever is in the text boxes as the address of the IP and port the socket will connect to, then connects to that address without issues (or with a error message if it can't due to wrong IP/port).
    - The connection needs to work for non-local addresses. Not sure if it can yet.
    - On re-pressing connect, the previous socket is closed, then creates a new socket (with new IP/port, if that was altered)
    It seems like making the button should be as simple as putting the existing socket code under the function of a button, but it also seems like it's going to cause issues similar to the 'looping frames' error.
    4) Optional addition: Have a scrolling textbox like the AIR server has, to track what the connection is doing on-the-fly.
    The end result would be a client that allows user to input IP/Port, connects on button press (optionally tracking/display what the socket is doing via scrollbox), automatically alters the smiley based on what numbers are sent whilst the connection lasts, and on subsequent button presses, makes a new connection after closing off the previous one.
    Dropbox link to new client version:
    https://www.dropbox.com/s/ybaa8zi4i6d7u6a/Smiley_TCP_IP_v7.fla?dl=0
    So, starting from 1), can I, and how can I, get the number variable recognized by "inputbox" layer's code? It keeps giving me 'unrecognized variable' errors.

  • Java 1.3.1 and Detecting Socket Closure (A Popular Question, I Know)

    Hi, all. I've been skimming the web looking at various commentary on how it is impossible to detect whether or not a Socket has closed without calling the read of Socket.getInputStream() or the write of Socket.getOutputStream(). I wrote a networking package some months ago that would spawn one Thread for each Socket so I could spare the Threads to block on the I/O, thus following this suggestion. I also understand that Java 1.4 contains various elements of the java.nio package that are supposed to take care of nonblocking I/O. I think, however, that this is entirely possible with Sockets in Java 1.3.1.
    I wrote a program that calls Socket.setSoTimeout(), setting the timeout of the socket to 1 millisecond. I then have one Thread looking at a series of open Sockets. The Thread calls the read method on each of the Sockets' InputStream objects and does one of three things based upon the result:
    If the result is a successful read, the data is handled as is appropriate.
    If the result is a -1, the Socket has been closed and is formally shut down on this side.
    If the result is an InterruptedIOException, the Socket is open but has no available data.
    The Socket is then ignored until the next pass.
    I've tested this idea on an Athalon XP 2100+ and not seen a significant use of processing power.
    Therefore, my question is as follows: what's wrong with this idea? We've looked at it and it seems to be an appropriate solution to the problem. Yet, I've seen little mention of this way to work around blocking Socket I/O in Java 1.3.1. It seems appropriate and certainly cuts back on Thread overhead... but does anyone see a catch?
    Thanks! Best of luck!

    This approach to multiplexing seems to not work under the 1.3.1 release for Windows. I have found I still get a -1 on my input stream read, instead of the InterruptedIOException. It's pretty frustrating.
    The axact same code appears to work fine on Linux . So this may be dependent on the native code layer for the sockets implementation, or we may be encountering a bug in our or Sun's code. I haven't found documentation of the expected behaviour of the SocketInputStream (the actual class returned by Socket.getInputStream) or the socket implementation in general for each platform.
    Note that in general, your approach is not really scalable for the kind of situations the Non-blocking IO package was introduced for. Your approach means that 500 sockets will have a 1/2 second intrinsic delay. You would have to start thread-pooling, etc. You can see why something like an internet audio streaming application would benefit from lower level support in the java libraries.
    Neil

  • How to use IE proxy with an applet and a socket ???

    Hello!
    I need to make an applet running with Internet Explorer.
    This applet uses socket and sends http request to a server (the server where the
    applet is).
    It's ok but it doesn't work when my IE uses a proxy.
    My question is: how my applet can makes a socket using the IE proxy ?
    My applet can be used by many users, so it has to work with or without proxy, and has
    no need no configuration.
    Thanks for your help.

    Check for the system environment variable for "ie.proxy" in your applet code, if it returns something then use the proxy server, if not then ignore it.
    However, as a rule of thumb unless your IE Security settings enable applets to access URLs, then it won't work. Next, speaking in general java - applets can only access resources (URLs) from the applet's originating server (i.e. the server where the applet exists).
    If IE uses a proxy, then your applet should automatically use it, unless as I metioned before, your IE Security does not allow permission for the applet to do so. Check Tools - Internet Options - Security - Java - Advanced options.

  • Iphone 4 will only charge from computer and wall socket?

    Im having trouble with my iphone 4 not charging/syncing with anything other than my computer by usb or the wall socket charger.  It used to sync with no problems before using my cars usb and on my hifi dock (onkyo), but no more!  Im sure this is since the last update.  Ive tried reseting and restore, but doesnt seem to make a difference.  Can anyone help?  Its really starting to annoy me now!

    Ash0 wrote:
    This is really upsetting me as I have spent a fortune on Apple products over the years and the accessories that are "made for ipod and iphone" over the years and now those are useless with the device I use the most.  If this doesnt get sorted, I'll be going to another brand. 
    That is just illogical and unintelligent.  Stop whining.  And while you're at it... leave.  No one here cares about which product you go with.
    Ash0 wrote:
    Just hope either Apple gives an update to sort this or my local Apple store can sort this!
    An update for what?  Your logic processor?  Not gonna happen.  Only YOU can update that.
    Clean the dock connector on the device, it is likely dirty or full of lint.

  • Headphone and mic sockets on Xtreme mus

    Ok so i just installed my Xtreme music card and it went fine, but its the sockets on the sound card im not sure about?I have put my green speaker lead into the right socket (2nd from the left) and i have put my headset mic into the first socket and they both work great. The only problem is that i am left with my green?headphone plug/jack?(not sure the tech term) with no where to go other than where my speakers are plugged in?So this means every time i want to listen through my headphones i have to go to the back of my comp and swap the speaker and headphone jacks!
    Am i missing something can someone please tell me a way to change from speaker to headphones without doing this?

    The Black Cable is the one with the 0 pin connector that connects to the card. The other one is a cable running from the TAD connector to the 56K Modem card (internet) which i don't use. I just reattached it so it would't be hanging loose inside. Your motherboard is the biggest thing you will see inside the case. You will see the PCI slots where your video, sound, modem cards are seated. If you are uncomfortable opening your PC don't. If you want to have a looksee, power down your PC remove all cables attached including the power cord. Press the power switch momentarially to discharge the system. Open up the case and touch a metal part first to ground yourself. Piece of cake. If you have your user manual consult that first.
    Dell XPS 600 Intel Pent D 830 3.0ghz
    Chipset- Nvidia nForce4 SLI Intel Edition
    WD 60gb HD
    2gb Ram
    DVD-ROM
    DVD-RW (Plextor 760A)
    Creative XF-I Extreme Music
    Logitech X-540 speakers
    EVGA 7950GT
    Dell 2007WFP (I-SPS panel)
    Win XP SP2
    BIOS A

  • Communication beween an http client a servlet and a socket server

    Hello I’m developing an application that needs a client to communicate with a servlet using Http and then the servlet needs to connect to a server using sockets.
    The client will send an image to the servlet and then the servlet will send that image to the server.
    Everything works OK except when I try to send the data from the servlet to the server. It seems that there is no indication of when the outputstream has reached its end. So when trying to do this at the server side:
    BufferedInputStream inFromClient =
                  new BufferedInputStream(serverSocket.getInputStream());
    int inp=0;
    while ( (inp=inFromClient.read())!=-1 )
             //do smth
    }The server will block at the read() method.
    If I close the connection from the servlet using the close() method of a print stream everything will work fine
    but I don't want to do that because I want the server to send a message back at the servlet.
    I don't know if I make any sense but I'm new to servlets and Java as well.
    Thanks in advance and if there something that you don't understand please let me know.

    I'm not quite sure what you mean. I have tried to do the same in the following piece of code and it worked fine. The only difference is that here the data is read from a file but I still send it as raw data(bytes).
    import java.io.*;
    import java.net.*;
    public class Client
        private String path="c:\\img0049.jpg";
        private static void sendImage(Socket client,BufferedOutputStream toServer)
             BufferedInputStream readFile=null;        
             int inp=0;        
             try
                  readFile = new BufferedInputStream( new FileInputStream(path) );
                  while ( (inp=readFile.read())!=-1 )
                        toServer.write(inp);
              catch (IOException e)
                   e.printStackTrace();
              finally
                if (readFile != null)
                     try {
                   readFile.close();
              } catch (IOException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                     //client.close();
        public static void main(String args[]) throws Exception {
            // connect through localhost to the same port that the server is listening to
            Socket clientSocket = new Socket("127.0.0.1", 4322);
            BufferedOutputStream outToServer =
                    new BufferedOutputStream(clientSocket.getOutputStream());             
                sendImage(clientSocket,outToServer);              
            outToServer.close();
            clientSocket.close();
        }// main   
    }// classIn the server side I'm just reading it with something like that
    try {
                    BufferedOutputStream out =
                         new BufferedOutputStream( new FileOutputStream("c:\\out.jpg"));
                    int inp=0;
                    while ( (inp=inFromClient.read())!=-1 )
                         out.write(inp);
                    out.close(); //close will also flush
    //.....rest of codeNow here is the servlet code of the application that I'm discussing (the servlet has already received the data from the client using the Htpp protocol. I know it has through debugging).
    I'm guessing that the servlet is storing my data in the BufferedInputStream so then I'm trying to read from there and send it to the server
    public void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws IOException, ServletException
              /* Get input stream from mobile client: Servlet<-- Client */
              ServletInputStream inputFromClient = request.getInputStream();
              BufferedInputStream bufInputFromClient = new BufferedInputStream(inputFromClient);
              /*Create socket and get output stream in order to communicate with
               * Server: Server<-- Servlet */
              Socket clientSocket = new Socket("127.0.0.1",4322);
              OutputStream outputToServer = new PrintStream(
                        clientSocket.getOutputStream());
              /* Empty buffer and send data to output stream */
              int inp=0;          
                         while ( (inp=bufInputFromClient.read())!=-1 )
                          outputToServer.write(inp);
                        outputToServer.flush();                   
                       //outputToServer.close(); //If I use this the server will know that the stream has ended                   At the server I'm using again the 2nd piece of code I posted above.
    That's it I hope I'm not confusing you.Thanks

  • NIO and traditional sockets

    I have a little server that I was porting from traditional thread per socket programming to NIO. The first thing I ported was the Listen-Accept loop. This worked well but the resulting sockets obtained from
    SocketChannel.socket()
    have very strange behaviour with respect to flush. I send the data by
    out.write(data);
    out.flush();
    where out is the BufferedOutputStream. The data doesn't get sent until the next input arrives on the Socket. If I change to using just old style I/O or completely NIO the problem goes away.
    I found several bug reports on NIO and flush, but they all seem to be considered Feechures by SUN.

    Thanks for posting the link to your NIO code. I downloaded the src-raining-1.2pre1 source and took a look. I noticed that you still have some doubts about how OP_WRITE works. This piece of code will definitely have problems.
        public void setSendData(ByteBuffer data) {
            this.write_pending = true;
            wBuffer = data;
            //RK modified on 20031008 23:19:39 - NOOO
                    //registerChannel(selector, channel(), SelectionKey.OP_WRITE);
            // RK modified on 20031009 23:15:00 adding write interest
            SelectionKey sk = sc.keyFor(selector);
            int ops = sk.interestOps();
            sk.interestOps( ops | SelectionKey.OP_WRITE);
            selector.wakeup(); // is this required or not ???
        }The sk.interestOps will block if there is an active select. If there isn't an active select you don't need the wakeup. The only way to make this work properly in 1.4.2 is to build a queue of runnables that set interestOps and execute them just before or after the select. Also the setting of OP_WRITE in that code won't handle the case where the network exerts flow control on the channel. The correct setting of OP_WRITE is
    - set interest in OP_WRITE when the socket is connected
    - remove interest as soon as you successfully write all the data in a buffer
    - add interest only when you write less bytes than requested.
    My post Taming the NIO Circus provides an example of this in the swing based client. I posted this in response to Java.nio. SelectionKey interestOps(int) method blocks

Maybe you are looking for

  • Loading a degenerate dimension

    Hi, I have source data which is used to load both a SCD2 dimension and fact table. Since, the dimension is derived from the fact data and is not a measure we can call it as a degenerate dimension. Ex: Source Row -- A,B,C,D,E Fact data - A,B,C Degener

  • SQL server Timeout issue in data insertion

    We are loading data from DB2 database to SQL server using Data flow task. During data insertion in SQL server, we are receiving the below error. "An exception has occurred during data insertion, the message returned from the provider is: Timeout expi

  • Problems with the Built in Camera - Help!

    Dear Comunity, In my Mac Book, when I turn on the built In camera, I get 4 horizontal red lines in the midle of the screen. i have the standard version of Leopard. Is there something I can do to change this? Thank you very much for your help

  • Uix image

    Hi, how can set a background image in an uix page ? thank for help Andrea

  • Proxy plugin - Debug parameter values

    Up until a few months ago the proxy plugin documentation for WLS 8.1 included multiple values that the Debug parameter could be set to (e.g ALL to see just about everything, ones to see just headers etc). Now it only seems to have True|False. http://