Control packets on the Socket API

This sounds like a strange question.

I have an application that connects to a banking service ISO using Java Sockets, TCP/IP. The application is ready, but we have had delays in receiving messages. The Bank says they must receive each message in a single TCP/IP packet. Now who doesn't make sense for me because I can't control how TCP/IP sends out packets through the network. In the Socket API I see not all methods to control this with the exception of TcpDelay. So is just a question, there a way to control how packets are sent to the network?

Kind regards

Nestor Boscan

No, you can't control with the socket API like everything which is abstracted away (thank God!). IMO the requirement itself seems counterproductive to limit and at least error prone if you ask me.

Maybe the NIO package provides more precise control, but I don't remember having read about it. If anything I would look into the NIO of Java 7 features.

Tags: Java

Similar Questions

  • W530 with Windows 7: the GetSystemMetrics API functions do not correct result

    Hello

    I recently updated my external monitor for Samsung S27A850D best resolution 2560 x 1440. After some effort, I finally managed to get this resolution, and, among other things, the section of the display of the control panel correctly shows the resolution. However, when I use the function API GetSystemMetrics with the SM_CXSCREEN and SM_CYSCREEN parameters get values in 1707 and 960, respectively. Does anyone have an explanation for it?

    Kind regards

    bostjanv

    Hello

    Thanks a lot for your comment. In fact, I have defined the size to 150%, but I was completely unaware of the mechanism behind it and really didn't know anything about scaling issues.

    Kind regards

    bostjanv

  • How to fix the error on the packets to the PCI DDK program - 7358

    Hello world

    I'm trying the RTX driver for motion NI PCI-7358.

    I would like to achieve the same function as flex_load_dac(). According to the DDK, I have to manually send the order via the package. The flex_load_dac() format is:

    Load CAD
    CommandID: 61
    Valid resource type: DAC
    Vector type: entry
    (Send) packet data
    Word Count: 1
    The data passed to: i16 outputValue

    So I write my code like:

    //////////////////////////////////

    #define CB 0
    #define CSR 8

    x = *(BaseAddress+CSR);
    While (!) (x & 0x01)) {}
    printf("%X\n",x);
    x = *(BaseAddress+CSR);
    } //wait for the RTR
    printf ("%X\n",x Heading1);
    * BaseAddress + BC = (u16) 0 X 0131; Number of words< 8="" |="" resource="">

    x = *(BaseAddress+CSR);
    While (!) (x & 0x01)) {}
    printf("%X\n",x);
    x = *(BaseAddress+CSR);
    } //wait for the RTR
    printf ("%X\n",x HEAD2);
    * BaseAddress + BC = (u16) 61; Command ID

    x = *(BaseAddress+CSR);
    While (!) (x & 0x01)) {}
    printf("%X\n",x);
    x = *(BaseAddress+CSR);
    } //wait for the RTR
    printf ("DATA %X\n",x);
    * BaseAddress + BC = (i16) 0 x 1111; write a value to the DAC output

    x = *(BaseAddress+CSR);
    While (!) (x & 0x01)) {}
    printf("%X\n",x);
    x = *(BaseAddress+CSR);
    } //wait for the RTR
    printf ("%X\n",x FOOT);
    * BaseAddress + BC = (u16) 0XFF0A; vector = 0XFF
     
    The print output is:

    HEADING1 1
    0
    0
    0
    HEAD2 1
    8
    10
    DATA 11
    10
    10
    10
    10
    10
    10
    FOOT 11

    It seems that after the command ID is sent to the card, a mistake on packages is completed.

    I've read all the related document on motion control card, but none speak the detailed explanation of the error on the packages and how to cope.

    Can any body help me with this problem or point out what's not in my package?

    It is a very urgent project. I wish I can get help on you!

    Thank you in advance!

    Rick

    Rick,

    Attached a few old files are used to create driver linux for the x 733 and 734 x cards.  The control interface is the same for the boards of 735 x.  They are provided AS IS, but I think they'll give you a very useful overview of what you need to do.  For example to remove the error command you send the terminator of value package several times the error is cleared.

    Rodger

  • The camera API v32 iOS number 8

    I see that camera API was introduced in v29, http://www.adobe.com/devnet/digitalpublishingsuitea/articles/is-a started camera -api.html.

    I take the exact code and both producer Folio and v32 container and placed in an article he asks permission to the camera or anything when the user clicks the button on the camera.

    According to DPSViewerSDK - 2.32 initializePermissions() has been deprecated, how we can access the camera in an article?

    Hi Joseph,.

    The read API requires that you enable the "allow access to right information' in the control panel overlay of the Web to enable access to one of the read API.  If your straight help batteries HTML instead, this setting can be found in producer folio.

    Setting in the control panel of Web overlay:

    Parameter in Folio Producer (piles of HTML)

    Make sure that you have done this and update/re-publish content and try again.

  • Sharing a vApp, catalog by using the vCloud API

    I need to share the vApp using the vCloud API but cannot find anything it either relating to the sharing of operation in the API documentation. If someone was able to perform using the API please give me the steps or the example code to do the same.

    Hello

    You can share vApps among members of your organization.

    'Control of access to the catalogues and vApps' - vCloud API Guide 1.5, Pg No. 157.

    GET https://vcloud/api/vApp/{VAPP id} / controlAccess - read access control settings on the vApp.

    POST https://vcloud/api/vApp/{VAPP id} / action/controlAccess - update settings for access control on the paralytic.

    Kind regards

    Rajesh Kamal.

  • Access catalog getting and setting using the REST API

    I have a catalog I can see through the user interface which allows members to add in the tab share read-only, read/write or full control of the vCD. They do not appear anywhere that I can find when obtaining the catalog through the REST API.

    The REST API of 1.5 of vCloud Director documentation indicates that it supports the getting or setting user access to catalogs by using the link "conrolAccess". This link does not appear in the response to a GET the href of the catalog (admin or his substitute). Attempted to add "/ controlAccess" HREF catalogue translated by RESOURCE_NOT_FOUND.

    Hello

    Could be a bug in the documentation, try like this

    https://cloud/api/org/org-uuid/catalog/catalog-uuid/controlAccess - Fetch (GET)

    https://cloud/api/org/org-uuid/catalog/catalog-uuid/action/controlAccess - updated (AFTER)

    Kind regards
    Rajesh Kamal.

  • With the help of the socket object to retrieve data from web application without the html files

    I tried to use the socket object to retrieve data from a web application (I just control script version vs version online). So all I want to do is access http://hyle.io/version that returns me the current version of the application (such as a simple string) in order to compare it in my script and then notifies the user accordingly. I have just a few problems using the socket object. I used this code from the Adobe Javascript Tools Guide:


    reply = "";
    conn = new Socket;
    // access Adobe’s home page
    if (conn.open ("www.adobe.com:80")) {
    // send a HTTP GET request
    conn.write ("GET /index.html HTTP/1.0\n\n");
    // and read the server’s reply
    reply = conn.read(999999);
    conn.close();
    }
    

    ... that I then adapted as:

    reply = "";
    conn = new Socket;
    if (conn.open ("hyle.io:80")) {
      conn.write ("GET /version HTTP/1.0\n\n");
      reply = conn.read(999999); 
      conn.close();
    }
    

    And here is what I get:

    HTTP/1.1 400 Bad Request
    Content-Length: 225
    Content-Type: text/html
    Server: Pagodabox-Routing-Mesh
    
    

    Bad Request

    Your browser sent a request that this server could not understand.

    Résultat : true

    I don't know a lot about HTTP requests, but I wondered if it was related to the fact that I am not pointing to a specific HTML file and the type of request was wrong or if I should rather check if there is something wrong with my host?

    The site/app is PHP and is hosted on PagodaBox if it helps.

    Thanks in advance!

    Hi Sebastien Lavoie,

    It should work

    var HTTPFile = function (url, port) {}

    If (arguments.length == 1) {}

    URL = arguments [0];

    port = 80;

    };

    This.url = url;

    This.port = port;

    this.httpPrefix = this.url.match(/http:\/\//);

    This.Domain = this.httpPrefix is nothing? This.URL.Split("/") [0] + ":" + this.port: this .url .split ("/") [2] +":" + this.port;

    This.Call = ' GET ' + (this.httpPrefix == null? ' "). " http://" (+ this.url: this.url) + "HTTP/1.0\r\nHost: ' + (this.httpPrefix is nothing? "This.URL.Split("/ ") [0]: this .url .split (" / ") [2]) +" \r\nConnection: close\r\n\r\n ";

    This.Reply = new String();

    This.Conn = new Socket();

    This.Conn.Encoding = "binary";

    HTTPFile.prototype.getFile = {function (f)}

    var typeMatch = this.url.match(/(\.) (\w{3,4}\b)/g);

    If (this.conn.open (this.domain, "binary")) {}

    This.Conn.Write (this.) Call);

    This.Reply = this.conn.read (9999999999);

    This.Conn.Close ();

    } else {}

    This.Reply = "";

    }

    (Return this.reply.substr(this.reply.indexOf("\r\n\r\n")+4);

    };

    }

    Hyle var = new HTTPFile ("http://hyle.io/version");

    Alert (hyle. GetFile());

    And by the way, I like the idea of 'http://hyle.io'. Can you give me your email address, I want to learn more about this Web site.

    Please send me an email to [email protected]

  • Layer control sets in the objects of EDA

    We use AutoVue in a process to review the design of Library objects because they are created. We have a lot (10,000 inhabitants) of these elements to be considered and would like to make the experience of the user as simple as possible. One of the heavier parts of the review process is to change the visibility of the layers. All these objects have a common set of layers (even the names and the order). We are trying to determine if there is a way to simplify the visibility of the layer. Here are a few thoughts we have and are looking for suggestions and alternatives.

    Option 1

    We know that multiple layer sets could be created where each defined controls the visibility of a set of layers. Sets of layers could then be stored in a file of markup. We know that the markup.map file control the relationship between the object being viewed and the file mark. We could change / programmatically update this file for each of the objects have in the same markup file. This seems to be the kind of a hack and has a number of holes that don't make it not very desirable.

    Option 2

    We know that the user interface can be changed according to the user. We believe that if we could create any menu items or need icons that set the visibility for the points of view of the users, it would make the process much more elegant and less tedious. Several questions come to mind in this option. The user interface can be modified to add additional menu or icons selection? An icon or a menu item to set the visibility of the layer? The method by which is running AutoVue allows to control the ultimate appearance and options that are available to the user? If we were to pursue this option, is there a recipe already in place that can guide us in the process?

    All responses are greatly appreciated.

    Hi Charlie,

    Please specify each of your EDA files have the same set of layers with the same names in the same order - it is crucial if you want to try to address the issue in a program or a batch way.

    As we talked about earlier today in a separate thread, Option #1 (creating a single markup with saved views file and linking this markup to several core files) can cause problems. As you know, when AutoVue is not integrated with a DMS/PLM, the rate of increase is managed on the server AutoVue in the file markups.map... and then this file is ASCII and can be changed (not recommended), don't forget not that the mapping depends on exactly where it was opened the base file to and what protocol is used to open this file. So, if the same file can be opened in 2 different ways (for example once there of the computer of the user and once from a web URL), the markup will not automatically be bound at the same time. Option #1 can be too unpredictable.

    This is why I would recommend Option #2. I will ask the experts to chime if they disagree, but I think that what you want to achieve is possible via the AutoVue API and can be broken down into 3 parts:

    1. write the code base to turn specific layers
    2 packing this code as a 'VueAction' custom so that it can be called as a menu item or custom toolbar
    3. customization of the graphical user interface to expose this point of menu or toolbar

    Part 1 (code of activation/deactivation of specific layers) should be relatively easy. The AutoVue API includes a class called "com.cimmetry.core.PAN_LAYER", which represents a layer in a file (including ADM files). With the API, you can:
    -The list of layers in the file running (VueBean.getLayersState)
    Toggle layers as required (PAN_LAYER.setState (PAN_LAYER. STATE_ON) or PAN_LAYER.setState (PAN_LAYER. STATE_OFF))
    Re-apply all of the layer update (VueBean.setLayersState)

    Part 2 (construction of a custom VueAction) is a little more complex, but it is explained very well in the new API Programmer's (http://download.oracle.com/docs/cd/E22156_02/otn/pdf/E22092_01.pdf) supplied with AutoVue 20.1.0 Guide. I recommend you to read the pages 20-22 and 30-35. You want to take the code from part 1 and package in the 'performer' of your custom VueAction method.

    Part 3 (customization of the GUI) should also be relatively easy and are discussed on pages 62-68, the Setup Guide and Configuration (http://download.oracle.com/docs/cd/E22156_02/otn/pdf/E22093_01.pdf).

    But rather than just saying 'read the docs', we now also provide an example prepared in advance of a customized with AutoVue 20.1.0 VueAction Client/Server deployment (I think that it is an optional component during installation). If you have included the installation, you will have the \examples\VueActionSample of your server installation folder. You should be able to use it as a reference to add your own custom in the applet VueAction.

    There is another part that I had not included. In our separate thread earlier today, I think you mentioned you wanted only does not provide this customization of GUI for some users. If you want to control the GUI based on the user/group/role/etc, it's possible, but it will be to you to determine the user/group/role/etc and the applet JVue of script accordingly (i.e. dynamically the cmdlet to set the GUIFILE script parameter, or use the JVue.setGUI method).

    Hope this helps at first.

    Thank you
    Graham

    EDIT: If you prefer to automate the configuration of the layer as soon as the file is loaded - rather than having it as a custom menu or toolbar item - you can do that as well and it is much easier. In this case you always go through part 1 and write code to set the desired channels and implement you it as a 2nd applet as described in Oracle KM notes 754612.1 (https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=754612.1).

    Published by: user638792 on April 5, 2011 20:23

  • The best API for browser Reader or PDF to BMP conversion?

    We tried a few commerical SDK and browsers, but they all are very slow compared to the drive when loading complex pages with many small objects.

    So we try to decide if the Acrobat SDK kit would work for us.

    We allow our users to look for a pdf page by page, by selecting some pages, we need later in TIF format.

    Basically, ideally, we would like to add a toolbar button to the reader. The user would click on the button to select a page.  The button, we believe, would simply call our code and we would invoke a Save command as in the SDK. But we do not know if the SDK can do all that.

    If the above is too hard, we would be able to programmatically and quickly convert a specific to a BMP or TIF PDF page, with no user interface. (We can create a browser BMP then.)  But we prefer the first solution to allow the user to navigate in the drive itself.

    Or is it possible for us to integrate the component of player on our own form with our own toolbars?

    Can someone give us some advice?

    We are a boutique of Delphi and can use OLE as well as create DLLs.  We can also use c#, but would prefer Delphi.

    We do not know if our needs are still feasible with DSK.

    Can someone give us an idea of what areas in the SDK to explore more before and warnings or suggestions?

    Thank you!!

    Yes, Acrobat can save to BMP, TIFF and many other raster formats.  Look at the AVConversion API

    You have more control over the options via a plugin.  If you want to use OLE, you can do so via the JavaScript bridge to the this.saveAs () method to also save in different formats.

  • Ar_receipt_api_pub of the slightest error. The STANDARD API

    Hi all

    When we run the ar_receipt_api_pub. APPLY the standard API, the display of the error below.
    But the profile value operating unit is already defined.

    ======================
    ERROR on line 1:
    ORA-20000: APP-11219: Please set the options of debt for this control unit system and ensure in this
    the MO: profile of working unit option is set correctly with an operating unit that is put in place
    in customer accounts.
    ORA-06512: at the 'APPS '. ARP_STANDARD', line 1177
    ORA-06512: at the 'APPS '. ARP_STANDARD', line 2696
    ORA-06512: at the 'APPS '. ARP_STANDARD', line 2705
    ORA-06512: at the 'APPS '. ARP_UTIL', line 30
    ORA-06512: at "APPS.AR_RECEIPT_API_PUB", line 7436
    ORA-06512: at the 'APPS '. APPLY_CASH', line 9
    ORA-06512: at line 1
    ======================

    Please do the needful.

    Thank you.

    Hello

    Please see if the solution to (Note: 257093.1 - Standard API to create recipes AR_RECEIPT_API_PUB.) Create_cash returns an error) help.

    Kind regards
    Hussein

  • How get control back to the page when OAException is raised

    Hello

    I am facing a problem where I need to get control back to the page after the oaException has been lifted on the page for a scenario (with custom Message).
    Because we have some javascript validations to be run on the same page, even if a warning is lifted through OAException for a few reasons.

    Please suggest me if there is no function to take in charge control once after the exception is thrown with the personalized message in the page (or) is there another class or function can be used to send a message with the symbol 'WARNING' that returns control to the page once it is made to go ahead with the postings.


    I appreciate your valuable answers.


    Thank you
    Trehout

    Hello

    I think that since this is a warning message, you can use the API putDialogMessage on the code of the controller, then you can do this by using:

      if (test_warning) {
          // Warning condition, adding a warning display to page
          OAException warning = new OAException("APP","MSG_NAME", tokens);
          pageContext.putDialogMessage(warning);
          // Since putDialogMessage does not stop processing,
          // we can call App Module logic or further processing
          am.invokeMethod("DoSomethingAfterWarning");
      } else {
          // Process without warnings
      }
    

    In this way, you can put a Message of dialogue as does an OAException, without harming the javascript validation, I think. Pay attention to the fact, however, that although an OAException stops the treatment at the time wherever it is thrown, a call to putDialogMessage does not stop the code below himself to run. If you need to stop treatment, join this call in an IF block so that it is running and then jump at the end of the processFormRequest or processRequest method.

    It will be useful,
    Thiago

    Published by: Thiago on December 26, 2008 11:48

  • How to fix Firefox 31, 0-1 crashing on the Audio-Api - for example on quizlet.

    Dear Firefox team,

    Since yesterday (after the updates), Firefox hangs when it tries to play a sound. I think because of the Audio Api? It crashes on Google-Mail and Quizlet.

    For quizlet, I found a site where they describe how their sound: http://quizlet.com/help/how-does-audio-work-on-quizlet

    When I opened the file audio-test firefox crashes instantly without an errormessage. Here you get the example file: http://a.s.quizlet.com/en.mp3?v=5 & b = SWYgeW91IGNhbiBoZWFyIHRoaXMsIGF1ZGlvIGlzIG5vdCBiZWluZyBibG9ja2VkLg & s = LAhrMA-0

    Can I do something about it? Its really hard for me to understand why it crashes.

    Hey again once, unfortunately I can't reproduce the problem on a windows pc and the console log is not very descriptive (at least for my level of knowledge).

    If you can reproduce the same breaks down while you use firefox in safe mode, I would recommend filing a bug to the bugzilla.mozilla.org of this regression, so that developers have a closer look.

  • Where is the Social API on Firefox 17?

    I install Firefox 17 on Ubuntu. Where can I find the social API on facebook?

    You can enable social features by setting the pref social.enabled true on the subject: config page.

    https://mozillalabs.com/en-us/Social-API/

  • Firefox does support java applets if the "next generation plugin" is disabled via the control panel of the Java plugin.

    I'm still trying to get a definitive answer to this question.
    My applet is not 'Next Generation in line'. When we run our applet in Internet Explorer, it works very well as long as we disable the "next generation Plugin" via the Java plug-in Control Panel. However our applet does not work in Firefox if the cmdlet-the next generation"is disabled.

    It is a requirement that is I want to run an applet in Firefox 3.6.x or higher that the "next generation plugin" be activated via the control panel of the Java plugin.

    The current versions of Firefox (3.6 or later version) can only run Java applets through the next generation plugin.

  • I have problems to make my battery charged, because the cable does not have a link solid with the socket of the phone.  The problem seems compatible with a lot of cables, so I think the problem is with the phone. Can it be fixed?

    I have problems to make my battery charged, because the cable does not have a link solid with the socket of the phone.  The problem seems compatible with a lot of cables, so I think the problem is with the phone. Can it be fixed?

    Probably there is debris and dust in the decision-making of the lightning.  Serve with compressed gas canned (NEVER orally).  If this doesn't help, try electronic contact cleaner has a q - Tip.  Finally, take it to Apple.

Maybe you are looking for