Is it possible for the client to receive constantly data over tcp without\n

Hi
I have a server that constantly outputs measuring data. I would like some help with the client application that receives data and directly outputs. Client application is just receiving without sending anything. I have tried
BufferedReader stdIn = new BufferedReader(
new InputStreamReader(System.in));
     String userInput;
     while ((userInput = stdIn.readLine()) != null) {
     out.println(userInput);
     System.out.println("echo: " + in.readLine());
But it hangs, because there is no end of line from server, how should I proceed to constantly retrieve data from server?

I tried with
InputStream is = new BufferedInputStream(CLSocket.getInputStream());
System.out.println("Connected");
is.read();
but my application hangs (is runing without stopp, looping forever) when it comes to is.read();
what should I do?

Similar Messages

  • There is a possibility for the iphone 5 block to the receiving sms from a particular nr?

    there is a possibility for the iphone 5 block to the receiving sms from a particular nr?

    First of all Tranks for your fast answer. My Provider isn't able to stop this ( DE ). Is there an App which can stop theese ?
    I trieb Blackouts, but it doesn't work in the Way i want

  • Quality Inspection for the 1st time Receive of Batch

    Hi all.
    My requirement is just to do the quality inspection when the Batch(MCHA-CHARG) is received in the first time in MIGO.
    No quality inspection is required for next & consequtive goods receive for the same batch.
    for the 1st time receive, the stock will go to quality inspection stock for any batch of a material. From the next time , the stock will go directly to unrestricted stock without quality inspection. is it possible? plz advice.
    Thanks
    pabi

    Hi Pabi,
    I am not sure if this will help you, but here are the three options that you might want to consider:
    - Source inspection. The idea here is that an IL is created for a purchase order prior to GR. All subsequent receipts for this PO can be configured to skip inspection.
    - Control if insp. lot in material master (insp. set-up). In this case, the system will not create new insp. lot, if there's already one open for the same batch - it will merely add the qty of the new GR to the same open insp. lot.
    - With dynamic modification you can let the following receipts of the same material from the same vendor to go without QI, but you can't fine-tune it by batch.
    I know this is not the same what you want, but I can't recall at the moment a function that will satisfy your requirement exactly.
    BR
    Raf
    Edited by: Rafael Zaragatzky on Aug 7, 2011 4:32 PM

  • Posting is not possible for the specified company code.

    Hi SRM Gurus,
      We have a four company codes in our org.structure and if we try to post manual invoice for a particular company code with its currency, we are getting this error :
    "Posting is not possible for the specified company code "
    We have all company codes defined and inherited for the particular user in BUK and we get all the company codes in the F4 help of this user in BBPIV02 -->Basic data.
    Any suggestions pl.
    I doubt this particular Cocode is deactivated for invoice posting in backend. Is it possible ?
    Kindly suggest.
    Reg.,
    Sridhar.

    Hi
    Which SRM version are you using ?
    Are you getting this error for a praticular company code only or for all the comapny codes ?
    <b>Please read this -></b>
    Since you are trying to create Invoice with PO did you check the Vendor Root there is a attribute for company code. Please maintain the same, if not maintained.
    Refer the link below for details.
    Re: Company code for system missing in user attributes
    <u>Other related links -></u>
    Try to change the chart of acct info in OBY6 for a company code that was copied from SAP template, there is no Financial posting or any other posting in this company code.
    Re: Posting Period Error in Confirmation
    Hope this will help.
    Regards
    - Atul

  • No goods receipt possible for the PO - Interesting issue

    HI all,
    I need to do the GR for an open inbound delivery. At the item level of precessing document i.e PO 'No goods receipt' check is marked. Same thing is copied to my inbound delivery 'No goods Movement' is marked in Adminstrative tab of my inbound delivery item.
    When I use the BAPI BAPI_GOODSMVT_CREATE to do GR for this Inbound delivery, it throws an error saying that 'No goods receipt possible for the PO item'.
    But when I do the same thing manually it happened successfully by creating a "service confirmation document" and changed the goods movement status as C (fully completed) without creating an material document as these items are no relevant items for goods movement.
    As we are moving goods directly from Vendor to customer, just we want to do service confirmation to vendor without any goods movement. It happening manually but not through BAPI. Please suggest.
    Helpful anwers are certainly rewared
    Thanks,
    Raggs.

    Hi AP,
    I didn't find any relevant FM to do the same.
    Thanks.

  • Is it possible for the Adobe to put video instructions on these following things as my professor works on CS4 and I have CS6,it is really confusing for me to follow the disparitie between the two.

    Is it possible for the Adobe to put video instructions on these following things as my professor works on CS4 and I have CS6,it is really confusing for me to follow the disparitie between the two
    Modifying the header
    Changing page background color
    Changing sidebars in CSS
    Adding/changing a Spry link's background and hover colors in navbar
    Formatting headers in split view
    Deleting placeholder copy in the content container
    Inserting a video in a table
    Changing table background color
    Formatting text in the content container
    Format hyperlinks in CSS
    Insert page anchors and link to them with navbar hyperlinks
    Enter text in footer with a hyperlink
    Insert and format headers
      Use of a color picker (Color Cop)

    Use CS6 Help (F1).  Those are the most up to date articles for your product version.
    <Changing page background color>
    We've already told you how to do that with CSS code.
    <Deleting placeholder copy in the content container>
    Placeholders are deprecated.  Adobe removed them.
    <Inserting a video in a table>
    Insert > Media > HTML5 Video
    <Insert page anchors and link to them with navbar hyperlinks>
    Named anchors are deprecated in HTML.  Adobe removed them from DW.  Use Div IDs instead.
    Why are you taking a course that teaches outdated methods in CS4 which is no longer supported?
    Nancy O.

  • Is it possible for the next IOS 6 update for the music album art to display on the homescreen as a backround image when music is playing?

    Is it possible for the next IOS 6 update for the music album art to display on the homescreen as a backround image when music is playing?

    It does, under certain circumstances. If you are playing music and lock the phone or it locks on its own, when you wake it up, the album art will show. It also shows as the background if you are in the music app. If this is not exactly what you are looking for, you can submit feedback to Apple about this feature at www.apple.com/feedback.

  • Publishing server doesn't work - error 'The request URL doesn't contain the query string for the client OS'

    Hi,
    I'm trying to setup an App-V environment in my lab.
    I've used the App-V 5.0 Trial guide to help me configure all necessary components.
    I'm able to install everything without error.
    when come time to publish an app, it simply doesn't show up on my client.
    after looking at events on the client and server, I found that the Publishing server is returning under Admin the following message.
    'The request URL doesn't contain the query string for the client OS'
    My setup is pretty simple.
    App-V Server managament and Publishing on the same box
    App-V database on my SQL server.
    I'm able to see the publishing "webpage" by using http:://localhost:889.
    It only display this :
    -<Publishing Protocol="1.0"
    <Packages />
    </Publishing>
    I've published one app from the management console.
    any idea what could mean this error?
    thanks

    Hi,
    thanks for the link.
    I've validated the suggested debug steps. It seems that the problem is with my Publish server again.
    I've looked in the web.config file. It seems to be missing some parts compare to the example provided.
    Again, I've published an application from the management console. Management and Publishing are running on the same box, while SQL is remote.
    Here's the web.config
    <?xml version="1.0" ?>
    - <configuration>
    - <system.web>
    <compilation debug="false" targetFramework="4.0" />
    <machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" />
    - <authentication>
    - <!-- We don't support form authentication, but this will supress x-ray security warning
    -->
    <forms requireSSL="true" />
    </authentication>
    </system.web>
    - <system.webServer>
    - <modules runAllManagedModulesForAllRequests="true">
    <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </modules>
    - <security>
    - <requestFiltering>
    - <verbs>
    <remove verb="GET" />
    <add verb="GET" allowed="true" />
    </verbs>
    </requestFiltering>
    </security>
    </system.webServer>
    - <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    + <behaviors>
    - <serviceBehaviors>
    - <behavior name="">
    <serviceAuthorization impersonateCallerForAllOperations="true" />
    <serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
    </behavior>
    </serviceBehaviors>
    </behaviors>
    - <bindings>
    - <webHttpBinding>
    - <binding name="SecureBinding">
    - <security mode="Transport">
    <transport clientCredentialType="Windows" />
    </security>
    </binding>
    <binding name="UnsecureBinding" />
    </webHttpBinding>
    </bindings>
    - <protocolMapping>
    <add scheme="http" binding="webHttpBinding" bindingConfiguration="UnsecureBinding" />
    <add scheme="https" binding="webHttpBinding" bindingConfiguration="SecureBinding" />
    </protocolMapping>
    - <standardEndpoints>
    - <webHttpEndpoint>
    - <!--
    Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
    via the attributes on the <standardEndpoint> element below
    -->
    <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" />
    </webHttpEndpoint>
    </standardEndpoints>
    </system.serviceModel>
    </configuration>

  • I just set up my Site 5 email account on my iPhone, but there is a delay of over 2 hours for the iPhone to receive the emails.  Can anyone provide a solution to this problem?

    I just set up my Site 5 email account on my iPhone, but there is a delay of over 2 hours for the iPhone to receive the emails.  Can anyone provide a solution to this problem?

    Hey Garlicdaisy,
    Thank you for the follow up.
    With iCloud, you can have iTunes automatically download new music purchases to all your devices the moment you tap Buy. You can also access past music, movie, and TV show purchases from any of your devices — wirelessly and without syncing.
    For more information, see the following:
    Apple - iCloud - All your music on all your devices.
    http://www.apple.com/icloud/features/itunes-in-the-cloud/
    To download past purchases on your devices, follow these steps:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    If you want the benefits of iTunes in the Cloud for music you haven’t purchased from iTunes, iTunes Match is the perfect solution:
    Apple - iTunes - Match
    http://www.apple.com/itunes/itunes-match/
    Thanks,
    Matt M.

  • How do you shadow a phone and is it possible for the person your shadowing to be able to tell?

    How do you shadow your phone and is it possible for the person you are shadowing to tell?

    Shadow? Are you referring to tracking the phone? If it is your phone, how are you tracking it? Are you talking about a stolen device?

  • I recently purchased "The Simpsons Movie" on iTunes, but it is not appearing on my cloud - or under recent purchases in iTunes. I was charged for the purchase and received a receipt. During the download i received an error message.

    I recently purchased "The Simpsons Movie" on iTunes, but it is not appearing on my cloud - or under recent purchases in iTunes. I was charged for the purchase and received a receipt. During the download i received an error message.

    Store > Check for available downloads
    Or report a problem...
    tt2

  • Is it possible for the Touch to work with Airport and play music wirelessly

    Is it possible for the Touch to transmit music via the Airport Extreme to my Hi Fi?

    No. But you can use it as a remote control for a current Mac - AirTunes -Airport Express setup with Remote Buddy (link). 
    The Airport Extreme Base Station doesn't have an audio facility:
    http://www.ifelix.co.uk/tech/1301.html
    regards
    mrtotes
    Message was edited by: mrtotes: Thanks Deggie!!! Must concentrate more and not have so many tabs open! RSully. When you car has stopped moving you keep it that way using a....
    Message was edited by: mrtotes

  • Is it possible for the posting COGS another price then standard price

    < MODERATOR:  Message locked.  Please post this message in the [Controlling forum|SAP ERP Financials - Controlling;. >
    Is it possible for the posting of the goods sold (delivery sales order) to use another price then the standard price when the price control of the material is S.

    Yes. Is it a third-party scenario?
    In a typical Third-Party sale (where the vendor delivers the goods directly to the customer, with no/notional GR in our books), the system uses the PO price and not the Std Price from MM.
    Cheers.

  • HT3228 What's the correct email settings for the fastest email receiving on my iPhone 4s

    What's the correct email settings for the fastest email receiving on my iPhone 4s

    As no one here knows who your email provider is, no, no one can help. Have you tried looking at your email provider's help pages? Done an internet search?

  • HT2479 In iMovie is it possible for the music track to run longer than the video?

    In iMovie is it possible for the music track to run longer than the video? e.g. for there to be a short video clip playing during the intro to the song and then the song to continue to play in full once the video has finished?

    Yes. Just drag your music in from iTunes or wherever and the timeline will auto increase to the full length of the music track. Like this:

Maybe you are looking for