Is there any way to identify the particular socket connection is closed ?

Is there any way to identify the particular socket connection is closed or not ?
Any methods ???
How can the program knows the connection is lost or some thing ...
Is the socket throws some excpetions when there is no active connection ???
namanc

If you get an IOException when you try to use the socket, the connection was obviously closed.
The correct way for an application to know if the socket was closed is:
1) the server sends a message indicating that the socket should be closed
2) the client closes the socket itself

Similar Messages

  • Is there any way to identify the two classes are compiled by same vm

    Is there any way to identify the two classes are compiled by same vm?
    Thank's a lot.

    I think this is the better forum than java compiler. The answer to the question you asked is no.
    But that question is not the best way to address your problem.
    If this were me, I'd use a tool like ASM (http://asm.objectweb.org/) to read in that file, and replace the getToday() method, with one like this
    long getToday() {
        return 20080101;
    }and replace the class file with this new one. (keep the old one, they might be using a class loader that verifies class signatures or something)
    (They said the code you are looking at could have been changed by you - so take the hint and change it back).
    If they've ripped you off, this will restore justice much more cheaply and effectively than involving the lawyers. If they then sue you for breaching the license agreement, that would probably force them to disclose their underhand tactics.
    OTOH, if you're lying to us about the purchase, and needing to pay for upgrades to fix the performance issue, and instead are trying to crack some trial software, then I hope they are using a custom class loader that checks the integrity of the classes.
    If you are being ripped off, why are you not telling us the name of the company? I am not sure who is being ripped off here.
    Bruce

  • Is there any way to repeat the last action on a new selection?

    I'm playing with Pages to see if I can use it instead of Word. I'm very expert with Word, just starting with Pages. Like some things, don't like some, but I think it's worth continuing to play with it to see if it will work for me. One problem I've been having is repeating an action. In Word, if you do something (in the particular situation I just had, it was deleting a row in a table), and then click on another place and do command-Y, it repeats what you did. Similarly, if you format a word as bold, say, and then select another word and do command-Y the second word will also be made bold. I realize the latter can be done in pages by selecting "emphasis" style for the second word, but I couldn't figure out any work-around for deleting the table rows (I tried selecting several non-adjacent rows, but "delete row" was greyed out on the actions menu). Any way to do this that I've missed?

    Thanks anyway. I'm sorry that Apple didn't include a "repeat" keyboard shortcut - going to the Inspector and then the actions wheel and then "delete row" time after time wasn't fun.
    I'm afraid I failed to communicate well about outline format - I didn't mean a bulleted or numbered list, I do know how to do that, but rather making a single character (or in my particular interest a symbol, the diamond and heart suit symbols) appear in outline text format. You can do it by going to format->font->outline, but if I want to do it for several occurrences of the same thing (or a few different things), it's not much fun to do it that way. But maybe I can define a character format that's outline and that will work. Still would prefer to have a keyboard shortcut to apply the character format though.
    Incidentally, while I'm talking about diamonds and hearts, is there any way to change the amount of space that gets put in after the diamond and heart symbols if you insert them using Edit->Special Characters? I write a lot of documents that use those symbols and lines end up unevenly spaced because of the large amount of space below each symbol (I've figured out a partial work-around - I defined a style for "body after suit symbol" that is raised enough to get the line spacing right, but that only works when I want to have a hard return at the end of the line with the suit symbols, since if the lines wrap, both lines have to have the same paragraph formatting. This problem isn't really Pages related - I have the same difficult with Word .

  • *Is there any way to limit the Chart Bar size dynamically?*

    Hi
    I have selected the Marker size as Medium for my Bar chart.
    Bar chart bar showing too big when there is only one bar.
    Is there any way to limit the bar size dynamically?
    Thank you

    hi Ruwan,
    Don is correct in that there is no option in the chart design component to do this.
    what you can do though (i know it is a pain) is to
    1) create a new chart in a new section with a narrower bar using the chart options dialogue
    2) create a conditional suppression formula for the new section and the old chart section based on the value returned in the Show Value for the chart
    i have created a request for a charting overhaul [here |https://ideas.sap.com/community/products_and_solutions/crystalreports;jsessionid=B3E2E9F6A6CC9C9F5321659382A91855.node0]in the ideas place which includes a solution for this particular issue. please feel free to give it the thumbs up if you think that this is a worthwhile idea.
    jamie

  • Is there any way to see the  user name(authorized) to logon IR

    Hi,
    Is there any way to see the user name(authorized) to logon Integration Repository?
    I am getting error while trying this out.
    Can anyone please help me.
    Thanks.

    Hi,
    YES, you can see in SU01 and select the user . ANd check for the Roles assigned to that particular User.
    By seeing the Roles itself we can be able to say the Authorized or not
    Regards
    Seshagiri

  • Is there any way to know the T-code from the screen?

    Hi friemds,
    it s a general question. but I found relavant for posting here.
    I saw our group friens giving some T-codes for spro functions (eg: SNRO, M/06), bbut how to know the transaction from path. i.e. If I go to condition types screen, there I could not see any transaction. is there any way to know the T-code from the screen?

    Hi,
    Listed here are the various ways you can find the list of transaction codes and their usage:
    Use transaction SE11 - ABAP Dictionary:
    Fill in the Database table name and click the Display button.
    - TSTC   table will contain all the Tcodes and
    - TSTCT table will contain all the Tcodes with Texts.
    Once you entered the screen, click in Top Menu - Utilities - Table contents - Display
    If you want to display all the transaction code (total - 57,048) you have to change the Fields: Maximum number of hits to 99999 (default 500).
    or
    Simply goto transaction SM01, although this tcode is to Lock/Unlock any transaction code, you can also view all the tcode available in the R/3 system from here.
    or
    Goto transaction SE93
    There are two ways where you can find the list of transaction codes in SE93.
    Method 1:
    You must be familiar with the starting characters strings for each of the R/3 application modules.
    Assuming you know that most Materials Management transaction codes start with MM.
    In the Fields: Transaction code, type in MM* and press the function key F4
    The list of transaction code starting with MM will be displayed.
    Method 2:
    On the Top Menu, click Utilities - Find - Execute and the first 500 transaction will be display.
    If want to display all the tcodes, make sure you remembered to change the Fields: Maximum no. of hits right at the bottom of the screen.
    I know a particular T Code and can enter and work on it.  How do I know what is the menu path for that T Code?
    Enter Search_SAP_Menu in the command box and when the pop box appears enter, the Tcode and it will give the nodes and menu path. 
    This is helpful only in case of SAP Menu not in case of SPRO - ie IMG.....
    Reward if Helpful,
    Regards,
    Archit.

  • I am setting up a new Time Capsule to replace another hard drive.  Is there any way to include the the Time Machine history from the old drive on the new Time Capsule?

    I am setting up a new Time Capsule to replace another hard drive.  Is there any way to include the the Time Machine history from the old drive on the new Time Capsule?

    Check item #18 of Time Machine FAQ, particularly the material in #3 of the "How to" section.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • Is there any way to filter the LCCS room console from the list of users?

    I want to be able to hide the user that's logged into the room console from the list of users. Is there any way to identify that user?

    Hi,
    There is no standard way to hide users as such other than using anonymous presence. But the catch is, if you would set any property of change anything from dev console that publishes a message, then you will be noticed.
    The user that logs into the room console is always the owner, may be your client app, you can hide based on your both permission level and name/userID by subclassing Roster. I am just throwing up ideas, but as such there is no standard method for this.
    Whats your use case ? It's an interesting thought though and something we would think about on our side.
    Hope this helps
    Thanks
    Hironmay Basu

  • Is there any way to prevent the OS from querying the Superdrive when start

    Just a random question. Whenever my MacBook Pro starts up (either from sleep or a complete/fresh start, the OS queries the drive slot to see if there is a disc present. While this may be normal behavior, it seems to slow down the start up process. (I rarely ever have a disc in the drive). Just curious if this, in fact, normal, or if there's something awry.

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • Is there any way to retreive the FileName in the mapping

    Is there any way to retreive the FileName and so that I can use that in my mapping. This is FILE2RFC scenario with NO BPM.
       I am using the adapter specific message attributes in the file sender CC.
    Thanks,
    Ravi
    null

    Yes you can retreive it.  Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    Or
    Just do whatever mentioned in this weblog:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    ---Satish

  • Is there any  way to Mask the Name when  a select statement is issued?

    Dear all,
    Is there any way to mask the name .. i mean if User issue a select statement in a customer table the real name should come like ' ABCXXXDEFXXCFXX'... Which is not the actual name?
    e.g if Name: CHIEV SONG MEE
    If user issue a statment select * from customers;
    The Result Should come something Like this:
    Name
    CHXXV SXNG MXX
    Thank You

    user3029023 wrote:
    but it seems there is no option in oracle it self which can be used as there they are saying to get a data masking software which we can't due to some internal issues....I would not say that. How one implements masking depends entirely on the requirements that need to be met.
    For example, schema A owns all the tables. Schema B can be created as a "trusted" schema - in other words, schema A trusts schema B and allows it full access (with grants) to its tables. Schema B implements data masking as views. For each table in A, a view exists in B that implements the required masking. B can now grant select access on these views to user C. User C will see the same data object names in B as it would have if it used A - only, by using the B data objects it uses masked data objects and not the original source data objects.
    Another example - schema Dev is to have all the data objects of schema Prod, but masked where needed. One can use CTAS (Create Table As Select) to create the required tables in Dev with masked values where relevant. This Dev schema can be "refreshed" on weekends by dropping all tables and getting a new fresh copy of production data and masking it - ready for the next week's development cycle.
    If the application use is for example APEX, then instead of coding SQL directly as reporting regions to display, a function is used instead. APEX supports reporting regions where it calls a function and this function provides the APEX run-time with the SQL to execute and contents to render. It is easy to use this approach to implement logic in functions that masked column data depending on who the APEX user is, the security/role attributes of the user, and so on.
    No there is not a single "+mask this column!+" feature in Oracle.. but that does not mean that such a feature is not supported and cannot be implemented. Oracle has a very comprehensive and rich set of tools - more so than most (if not all) other RDBMS products.
    It is up to the architect/designer/developer to use this toolkit in creating a system that meets the specific requirements at hand.

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

  • Is there any way to specify the default version of LabVIEW?

    I have a sinking feeling that the answer to this question is "no."  With more than one version installed, is there any way to set the default LabVIEW version for opening a VI? I have both 7.1 and 8 installed, and usually only use 8 to open an example or look at something posted here.  When I do that, it resets all the OS hooks so that the default action for opening a VI is to open it in version 8.  I've even gone so far as to create actions to open files in 7.1 and 8, but it always resets my default action.
    I found this KB article for when version 7 came out, but it's suggestions don't seem to work with 7 and 8.
    Ugh. I hate it when software thinks it knows what I want better than I do.

    eaolson wrote:
    I have a sinking
    feeling that the answer to this question is "no."  With more than
    one version installed, is there any way to set the default LabVIEW
    version for opening a VI? I have both 7.1 and 8 installed, and usually
    only use 8 to open an example or look at something posted here. 
    When I do that, it resets all the OS hooks so that the default action
    for opening a VI is to open it in version 8.  I've even gone so
    far as to create actions to open files in 7.1 and 8, but it always
    resets my default action.
    I found this KB article for when version 7 came out, but it's suggestions don't seem to work with 7 and 8.
    Ugh. I hate it when software thinks it knows what I want better than I do.
    Add
    in the LabVIEW.ini file of those versions you do not want to rewrite
    the registry on startup to point to themselves for VI files, the
    following:
    RegisterExtensions=False
    Of course the VersionChooser utility mentioned earlier is even more convinient.
    Rolf Kalbermatter
    Message Edited by rolfk on 06-28-2006 08:21 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Is there any way to set the default for *.doc document so that Pages opens them automatically?

    I have a number of Ms Word documents because I used to have Word for Mac before the last OS release.  Now, of course, when I double-click on them, I get a message saying that PowerPC isn't supported.
    Now Pages will open these files.  Is there any way to change the default for *.doc files so that a double-click will open them in Pages? 
    (Instead of me going to the trouble of finding out where they are actually located on the hard drive so that I can open pages and say - here, open this file--even though you didn't create it--)

    Click on a .doc file and type Cmnd I to open Get Info. In the Open with: menu select Pages, then click on Change All…
    Walt

  • Is there any way to make the sent folder in mail list emails "to" instead of  "from"

    Is there any way to make the sent folder in mail list emails in the "to" order instead of  "from".

    Sure open Sent folder.
    Just above first message is an icon titled Sort By Date followed by a downward pointing arrow.
    Click on the arrow and select "To" from the list.
    Allan

Maybe you are looking for

  • Office 2013 Professional + Office 365 Home Premium - what happens?

    I am currently using Office 2013's Excel where I have access to Power Pivot and Power View. This is a perpetual, non-subscription version of Office with the Professional Plus product key. I am considering purchasing an Office 365 Home Premium license

  • Error accessing User-Database from Jython CLI

    Hi All, once again, we experience a problem, when running udb commands from the Jython CLI, namely one of 'udb.g.la' or 'udb.u.la' (Others may be affected as well). Our user is logged on and the application handle works well for any other CLI calls.

  • Touchsmart d110 series not printing pictures.

    The paper is loaded, the settings are set to the right paper quality and size, but when I hit print, it pops up saying Getting ready to print and immediately closes again. Is this a software problem or am I doing something wrong?

  • RFEULIST - report for Poland

    Hello, I have a problem with VAT report RFEULIST, if I created this report I have different value in fields DMSHB and LWBAS This item has field SHKZG equal H , so there should be minus. may any idea , why ? Thanks    

  • I need help fixing my iPod Touch 4th Generation myself

    I have an iPod Touch 4th Generation and the home button isn't working i think its stuck problem is my warranty expired and i have no money to fix it so i need help fixing it myself again my warranty expired and i have no money to fix it so HELP PLEAS