Questions tagged [flush]

Flush means clearing all the buffers for a stream. This will cause any buffered data to be written to the underlying device.

Flush means clearing all the buffers for a stream. This will cause any buffered data to be written to the underlying device.

1132 questions
0
votes
1 answer

StreamWriter.Flush(); won't flush

i am trying to link a Unity game to a Java server using C# when the Java server up the only way i can send data is by closing the StreamWriter (OUT.Close();) which actually closes the connection too. so i can only send data onces. or, every time i…
MrDisco
  • 3
  • 1
  • 5
0
votes
1 answer

labelsync help required

Does labelsync actually sync a file from the depot? or does it only require a file name? If it does sync, then is there any alternate command like flush that wud work similar to labelsync but faster(i.e without syncing the files) ? Please Help
drastogi
  • 173
  • 1
  • 2
  • 7
0
votes
4 answers

Input/output problems

#define MAX_COMMAND_LEN 32 char command[MAX_COMMAND_LEN]; while (1) { if (fgets(command, MAX_COMMAND_LEN, stdin) == NULL) { perror("Error: standard function fgets has failed\n"); break; } if (command[strlen(command) -1]…
Numerator
  • 1,389
  • 3
  • 21
  • 40
0
votes
1 answer

Socket based PrintWriter doesn't flush, just after close()

I am writing a server-client application. The problem is, that in the server the PrintWriter doesn't flush after some point, just after I close the print writer. But if I close the print writer, it closes the socket as well, however I need to use…
user1279563
  • 77
  • 1
  • 10
0
votes
2 answers

How do I Retrieve -> View -> Delete File in PHP?

Here is a code which retrieves a file (say .doc) from a server, stores it in a temporary folder and then uses an api (say google viewer) to display it and then deletes it.
victor_golf
  • 195
  • 2
  • 2
  • 10
0
votes
1 answer

NHibernate FlushMode.Commit auto saves dirty objects

I seem to miss something here : I have an application that uses a session per application method and using lazy loading. I've set the session FlushMode.Commit and it seems that NHibernate still auto saves my dirty objects to the DB (SQLCe) although…
Builder Bob
  • 151
  • 1
  • 10
0
votes
1 answer

making the output appear faster on the client browser

When I process large records in a while loop and each iteration of the loop outputs some info for the screen, I always find myself looking at an old screen. All I see is the activity icon spinning - which indicates that the server is processing some…
Average Joe
  • 4,521
  • 9
  • 53
  • 81
0
votes
1 answer

Observation with BufferedWriteHandler.flush

I've an observation pertaining to flush usage within my program. My test code pumps data < Channel.write(buffer) > worth 200 MB ( in chunks of 128 bytes each ) for approx 30 minutes with some delay of few ms between each such call. Once I get call…
0
votes
1 answer

php 5.3 causing flush() to fail?

I have two Linux hosting plans with godaddy. One (older runs) php 5.2.14, newer runs php 5.3.6. I use Firefox 11.0 and IE 9 on Vista. PHP below runs ok with php 5.2.17 (numbers appear every half second) until the script finishes. Hosting that uses…
emmets
  • 11
0
votes
2 answers

How do echo out progress on MAMP using flush()

I'm trying to run a simple PHP script on MAMP. I'm using PHP 5.2.17 and I have compression turned off. Im trying to execute this simple script
user379468
  • 3,989
  • 10
  • 50
  • 68
0
votes
2 answers

PHP Echoing Long of String With Limited Output?

I have a variable of array containing such as these names; // Listing ENTITIES $entitiesTable = array( 1 => "user", 2 => "group", 3 => "customer", 4 => "supplier", 5 => "terminal", 6 => "order", 7 => "invoice", 8 =>…
gumuruh
  • 2,544
  • 4
  • 33
  • 56
-1
votes
0 answers

Can a Java socket be closed immediately after flushing its output stream?

In Java, when I've written to a TCP socket's output stream (not further wrapped by any buffered streams available in Java), have flushed it, and the flush call has returned as well, can I go ahead and immediately close the socket assuming that the…
Harry
  • 3,684
  • 6
  • 39
  • 48
-1
votes
2 answers

Why is the php command flush not working in Safari?

I have a time-consuming php script, so I'd like to give the user some feedback. Simplified it to get to the core problem. This script works perfectly fine in Firefox (flushing the output instantly), but Safari waits until all the content is…
Sanderadio
  • 21
  • 3
-1
votes
1 answer

Python not flushing properly

I'm trying to flush content as it's generated by a Python script in a Linux server with apache. It's not working as expected. I generate this Test.py in order to make a proof of concept: #!/usr/bin/python3 -u from cgitb import enable from time…
-1
votes
1 answer

Why can't I flush ZipOutputStream?

I am trying to create a zip archive in java. Every iteration adds some data to a ZipEntry and I wanted to flush the contents after every iteration ( due to server restart handling ). But ZipOutputStream flush() does not work. i.e. contents are not…