What is ASCII character for end of stream?

I googled but failed to find the answer. Is it 004/EOT, 027/ETB, or something else?
In socket, read() != -1 never be reached, which incurred my above question. I want to see what ascii is used to indicate end of stream.
Thanks!

You need to rethnk the way that you reason about behavior and how you ask questions.
There must be an ASCII to indicate end of stream ... otherwise how [does it] detect ... end of stream?It looks to me like the question you are trying to ask is:
"How does one socket tell another that it has reached an end of stream?"
There's a mechanism there - youre just assuming its ASCII or that some sentinel value is sent.
ASCII is a text encoding. Since youre talking about a communications protocol were talking
binary. Theres no reason to call it ASCII.
It could be somthing as simple as: I know how many bytes long the message is and ive read
that many bytes.

Similar Messages

  • Whats the limitations character for email signature for iphone?

    I wonder whats the limitations character for email signature for iphone? if anyone can help... thanks

    Please provide more detail of what it is you need to know and why?

  • What is escape character for for Carriage Return, Line Feed, Form Feed

    Hi
    I need to a text file which should have following characters
    Carriage Return, Line Feed, Form Feed
    How do i insert them in a string
    i know "\f" is carriage return,
    but what are characters for line feed and form feed
    Ashish

    uncle_alice wrote:
    jverd wrote:
    remus.dragos wrote:
    I forgot that it does not exist in Java. A good thing
    from my point of view.Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    >
    >
    >I forgot that it does not exist in Java. A good thing
    from my point of view.
    Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    } Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    Ah, I thought he was saying Java doesn't support ringing the bell.

  • What do you use for Live HD streaming ?

    I am setting up lab to test live streaming but in HD. Got a good HD camera and Declink cards. What software / hardware do you use to do do live broadcast
    Jay

    Yes, the downsampling is down in the decklink card.  In the BM control panel applet select HD to SD conversion of the output.  This converts your 720p input to NTSC which works in FLME 3.0.
    Your other option is to use FME 2.5 which can capture at HD 720p.  However afaik FME 2.5 can't use multiple cores so you drop 90% of your frames unless you resize the encoded video to something smaller than HD.

  • Keystroke return and ASCII character 13 and 10 not working in

    I have the following script to opens a web page of my internal telephone switch (all in the local network) and fill in the two fields that come up and needs filled out in order to log in.
    tell application "Safari"
    activate
    open location "http://192.168.1.90/"
    end tell
    tell application "System Events"
    delay 1
    keystroke tab
    delay 1
    keystroke "" -- Note: Username goes here if one is wanted/needed
    delay 1
    keystroke "XYZ" -- Note: Password goes here if one is wanted/needed
    delay 1
    keystroke (ASCII character 13)
    end tell
    All works fine, it skips the first field (the login name is blank). Puts the password in the next field. However it refuses to activate the “log-in” button of the login window (the one that is blue and normally can be done with the enter key).
    I tried:
    keystroke (ASCII character 13)
    keystroke (ASCII character 10)
    keystroke return
    keystroke enter
    Non of them do the job.
    Any suggestions please? Thanks.

    Consider replacing ...
    keystroke (ASCII character 13)
    ... with ...
    tell document 1 to do JavaScript "document.myform.submit()"
    ... where 'myform' will have to be replaced with the forms' name.
    To obtain the forms' name ...
    01. Perform a right ('control' if single button mouse) button click on the form based web page. A contextual menu will appear.
    02. Select the 'View Source' menu item. A new 'Safari' will appear with the title beginning with 'Source of ...'.
    03. Look for a line similar to ...
    <form name="myform" action="submit-form.php">
    ... Note, the name="myform". This is the forms' name. Whatever is between the name="" is what you need to substitute 'myform' with, in 'tell document 1 to do JavaScript "document.myform.submit()"'.
    I entered ...
    tell application "Safari" to tell document 1 to do JavaScript "document.myform.submit()"
    ... in 'Script Editor', and visited 'JavaScript Form Submit example'. When the AppleScript code was executed, the web page responded accordingly.
    New test of code. With 'JavaScript Form Submit example' again displayed, the following code ...
    set tValue to "ChangeAgent"
    tell application "Safari"
    tell document 1
    do JavaScript ("myform.query.value=\"" & tValue & "\"")
    do JavaScript "document.myform.submit()"
    end tell
    end tell
    ... was entered into 'Script Editor', and executed.
    The results were as expected - the resultant web page reported ...
    Great! The Form is Submitted Successfully!
    Query:'ChangeAgent'
    Back
    ... And, the code was condensed even further ...
    set tValue to "ChangeAgent"
    tell application "Safari" to tell document 1 to do JavaScript ("myform.query.value=\"" & tValue & "\"; document.myform.submit()")
    ... producing the desired results.

  • How to find out the ASCII Values for Spanish character

    Hi,
    I had an requirement to store Spanish character and also need to fileter the records based on the Spanish character.
    Kindly guide me for below.
    To filter the Records which contains spanish characters?
    To get the ASCII Values for the particular column?
    E.g. we can find out the ASCII value of 'a' by using the syntax select ASCII('a') from dual.
    But I want to find the ASCII Values for the particular column value. Ie. name.
    E.g., Client name is "Suresh", I want to the ASCII Values for entire name of "Suresh".
    Kindly do the needful help / Guidance on this.
    Thanks,
    Orahar

    To expand on what I said in my first post, you want to do something along these lines:
    with t (thename) as
      select 'Suresh' from dual
    select thename
         , substr(TheName, level, 1)
         , ascii(substr(thename, level))
      from t
    connect by level <= length(thename);The output of the above query is:
    THENAM S ASCII(SUBSTR(THENAME,LEVEL))
    Suresh S                           83
    Suresh u                          117
    Suresh r                          114
    Suresh e                          101
    Suresh s                          115
    Suresh h                          104
    6 rows selected.Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and substitute the name "t" for the name of your table (also the name of the column to whatever name the column has in your table).
    Lastly, I suggest you post your question along with, an example table and the output you'd like to get in the PL/SQL forum. There are people there that will give you all kinds of great ways of solving that problem.
    HTH,
    John.

  • Given filename or path contains Unicode or double-byte characters.Retry using ASCII characters for filename and path What does this mean? it happen when I publish an OAM

    Given file name or path contains Unicode or double-byte characters. Retry using ASCII characters for filename and path
    What does this mean? It is happening when I try to publish an OAM for Dreamweaver.
    Also: How can I specify the browser in Edge Animate? It is just going wherever. Are there no Preferences for Edge Animate?
    BTW. Just call it Edge. Seriously. Do you call it Illustrator Draw? Photoshop Retouching?

    No, my file name is mainContent.oam
    My project name is mainContent.an
    This error happens when I try to import into Dreamweaver. Sorry, I wasn't clear on that earlier.
    I thought maybe it was because I had saved my image as a png. So re-saved as a svg, still get the error.
    DO I have a setting is Dreamweaver CC that is wrong? Should I try this in Dreamweaver CS6? I might try that next.
    Why is this program so difficult? I know Flash. I know After Effects. I can work the timeline part just great. It's always in the export that I have problems.
    On a MacPro, 10.7.
    Are you an Adobe person or just a nice helper?

  • What cables do I need for Apple TV streaming from my iPad to my tv

    What cables do I need for Apple TV, streaming fom my iPad to a HD tv?

    if you have an Apple TV it's don over wifi as in wireless so no cable would be required apart from the hdmi cable the Apple TV connects to the tv with

  • Ascii character 129 for newline in the text file

    Hi there,
    I have java program that makes JDBC connection and reads through a table, write a column in text file, after each column puts delimiter "|"and after each row prints in the next line.
    This is the code below.
    public void queryRecords() {
             Statement stmt           = null;
            ResultSet rset           = null;
            try {
                  stmt = con.createStatement();
                  int numRows = 0;
                File file           = new File("/tmp/temp.txt");
                FileWriter writer   = new FileWriter(file, false);
                BufferedWriter pw      = new BufferedWriter(writer);
                rset = stmt.executeQuery("SELECT * FROM mytable");
                ResultSetMetaData rsmd = rset.getMetaData();
                int colCount = rsmd.getColumnCount();
                while (rset.next()) {
                    for (int i = 1;i <= colCount; i++) {
                        String st = rsmd.getColumnTypeName(i);
                        if (st.equals("DATE")) {
                            Date d1 = rset.getTimestamp(i);
                            pw.write(d1 + "|");
                        } else {
                            Object o1 = rset.getObject(i);
                            if (o1 != null) {
                                pw.write(o1 + DELIM);
                            } else {
                                pw.write(DELIM);
                    pw.newLine();
                pw.close();
                 rset.close();
                 stmt.close();When i open this Temp.txt file in notepad i see ascii character 129 (rectangular box) instead of the new line. But when i print the file i have each row in a separate line.
    Why could this be happening??
    Please help...

    hi,
    Try PrintWriter instead :
    File file = new File("D:/testing.txt");
            //FileWriter writer   = new FileWriter(file, false);
            //BufferedWriter pw      = new BufferedWriter(writer);
            PrintWriter pw = new PrintWriter(file);
            pw.print("aaa");
            pw.print("|");
            pw.print("aaa");
         public static void main(String[] args) throws Exception {
              File file = new File("/test/test.txt");
            //FileWriter writer   = new FileWriter(file, false);
            //BufferedWriter pw      = new BufferedWriter(writer);
            PrintWriter pw = new PrintWriter(file);
            pw.print("aaa");
            pw.print("|");
            pw.print("aaa");
            pw.print("|");
            pw.print("aaa");
            pw.println();
            pw.print("aaa");
            pw.print("|");
            pw.print("aaa");
            pw.print("|");
            pw.print("aaa");
            pw.close();
         }hth

  • HT201991 What is the character limit for length for video or song reviews?

    What is the character limit for length for video or song review?

    One other thing I found... It was still doing the spinning clock and locking up, but it took a while after boot for the problem to crop up.
    I pulled the media card and found that there was a media sync folder under Blackberry\System that had some files in there that were pretty big.  The artwork file was over 150MB and some other files were largish.
    I deleted the entire media sync folder and now it seems to be behaving itself.  No more spinning clock and it seems to be slowly returning to normal.  (Besides all the messages it deleted during the whole process)
    If anyone else runs into this I would say you should clean the folder off the media card along with disabling the sync.  Seems the BB still reads that folder and processes it if present.

  • HT201077 My photos stopped going to my PC photo stream. What could have happened for this to happen?

    Photos were going to my PC photo stream & suddenly stopped around the first week of October. Don't know if this was when my iphone 4 & ipad updated to the ios-7.

    The following is from this Apple Document: iCloud: Photo Stream FAQ
    What do I need to use Photo Stream?
    To use Photo Stream, including Shared Photo Streams, you need an iCloud account, compatible devices, and up-to-date software:
    iPhone, iPad, or iPod touch with iOS 6.0 or later
    Mac with OS X Mountain Lion v10.8.2 or later and iPhoto 9.4 or Aperture 3.4 or later
    PC with Windows 8, Windows 7, or Windows Vista (Service Pack 2) and the iCloud Control Panel 2.1 or later for Windows
    Apple TV (2nd generation) with Software Update 5.1 or later
    You can still use Photo Stream without Shared Photo Streams if your devices meet these requirements:
    iPhone, iPad, or iPod touch with iOS 5.1 or later
    Mac with OS X Lion v10.7.5 or later and iPhoto 9.2.2 or Aperture 3.2.3 or later
    PC with Windows 7 or Windows Vista (Service Pack 2) and the iCloud Control Panel v2.0 or later for Windows
    Apple TV (2nd generation) with Software Update 5.0 or later
    For complete iCloud setup instructions, visit How to set up iCloud.
    You need Mt. Lion in order to use Shared Photo Streams.
    OT

  • At installation iTunes there is an error. An error of package Windows Installer. It is impossible to start necessary for end of installation the program. Address to technicians or to the supplier of a package. What to do?

    At installation iTunes there is an error. An error of package Windows Installer. It is impossible to start necessary for end of installation the program. Address to technicians or to the supplier of a package. What to do?

    Repair your Apple Software Update:
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install

  • 7 Okt, 2013   Faktura  138,00 SEK   was my licens ended but still you take money from my account every month ... how come? I have delited all Adobe programs from my computer according to this matter.Please inform what I' am paying for. LS Konsult Åke Löf

    7 Okt, 2013   Faktura  138,00 SEK   was my licens ended but still you take money from my account every month ... how come? I have delited all Adobe programs from my computer according to this matter.Please inform what I' am paying for. LS Konsult Åke Löfvenius

    Hi, If you purchased from a reseller I would speak to them. If directly from Adobe then please reach out our support chat who should be able to assist.
    https://helpx.adobe.com/contact.html

  • HT1143 what is the url for streaming movies to apple tv from a paired computer

    what is the url for streaming movies to apple tv from a paired computer

    Alright Thank You, I figured that was too much to ask...

  • What will the new high end 15" Retina Macbook Pro be like for gaming?

    With Nvidia Geforce GT 750M 2GB GDDR5, what kind of performance can I expect? I must stress that this is not my main concern, but I would like to know that in my down time I can enjoy myself and not got worried about frame rates etc.  So what sort of standards for the "average" game will I see? I will be using Windows 7 via bootcamp.

    Welcome to Apple Support Communities
    Read some benchmarks in the Internet > http://www.notebookcheck.net/NVIDIA-GeForce-GT-750M.90245.0.html They will tell you how games would work with this GPU, but note that this may change depending on your screen resolution, GPU drivers...
    In general, you shouldn't have any problem with that GPU to run games in medium-high settings. Be careful with the MacBook temperature, as it may get hot quickly

Maybe you are looking for

  • Recommend Panther or Tiger for QuickSilver Dual 1ghz?

    Hi, I'm faced with re-installing my OS, and would like a recommendation as to which OS to use. I'm currently using 10.3.9. Aside from the usually application compatibility issues, is 10.4 going to be to demanding on my old beast, or is it a good matc

  • Crash: "Access violation (0xC0000005)"

    Hello, One of our programs has crashed (crash of LabVIEW Runtime). The reason was an "Access violation (0xC0000005)" in the LabVIEW Runtime. Because it was an Error of the LabVIEW Runtime, I can not log the Error. This Error occurs only very seldom >

  • Google iPad Sync Microsoft Exchange - Sync only works in One Direction

    I have setup my iPad to sync with Google calendar using Microsoft Exchange, which supposes to work bidirectionally. I found that it only works in one direction such that anything in my Google calendar (includes all the subscribed calendars in Google)

  • Premiere pro freezes when exporting a project that has AE compositions in it?

    PC - 970 nvidia, i7 4790k, premiere will export when the After effects clips are removed, but freezes at different stages of completion when the are left in.

  • Xfce4 won't load xfwm4 on start up.

    For some reason xfwm4 isn't starting when I log in after uninstalling beryl. What do I have to do to get xfwm4 back? (it's still installed and re-installing it hasn't helped) I've tried deleting the ~/.config/xfce4* directories but that hasn't helped