I ve a input file like below. where I want to compare write data with my read data .. The problem is that the read data should be compared with the lastest write data on that address.
Note- Both write data & read data are in the same file.
TXADDR & TXDATA means -write
RXADDR & RXDATA means - read
means at time 120 I am sending a TXADDR -00000000 & the data to be written are like below
next when
comes It the time to read from that address 00000000 returns me the data what is written before i.e, the last one..
INPUT FILE
If there is some confusion with my explanation pls comment .
Thanks &
Regards,
user_prady
Last edited by user_prady; 09-01-2008 at 01:28 AM..
Hello friends,
I have a problem in printing an array..
Example if my array line contains 4 elements like following
line=0002 , line=202200, line=200002, line= 300313
Now one = sprintf line line line line will concatenate my whole array to one.
But I am not sure about the... (7 Replies)
Hello Friends,
I have a txt file like below
//*Init Start
Reg(read,12'h42E,16'h0000);
Nop(5628.5);
//*Init End
//*Main Start
Reg(read,12'h42E,16'h0000);
Nop(5628.5);
//*Main End
I want to calculate the values between //* Init Start & //* Init End
And //*Main Start & //*Main... (5 Replies)
I want to print lines that have "IND" or "ind" or nothing in field 2 or 3
file:
output needed:
Code i wrote:
nawk -F"," '{if(tolower($2||$3) ~"ind"||"")print}' file
Help is appreciated (3 Replies)
In one data file i have values like this
a b c 1 2
e f g 2 3
i j k 3 5
I need to sum up the last 2 columns and make a data file...How i can do that.
a b c 1 2
e f g 2 3
i j k 3 5... (8 Replies)
I have task to find out the min,max, average value of each service for example i searched for " StatementService "
$awk '/VST.*StatementService:/{print $3,$4,$19,$22,$25}' performance.log > smp.log
$cat smp.log
amexgtv VST: : StatementService:1860 StatementService:getCardReference:0... (3 Replies)
Hi,
My file has 2 fields and millions of lines.
variableStep chrom=Uextra span=25
201 0.5952
226 0.330693
251 0.121004
276 0.0736858
301 0.0646982
326 0.0736858
401 0.2952
426 0.230693
451 0.221004
476 0.2736858
Each field either has a... (6 Replies)
Hi friends, I am having 2 files, I just want to compare 2 files each containing 2 columns 1st column is lat, and 2nd column is long, if anyone can understand below logic please help me in writing script with awk.. here each field of file2 needs to be compared with std_file
main
counter=0... (1 Reply)
I am trying to check my logic on a long awk i'm using. I have about 30 checks that I built into an awk and I "believe" I did this right, but I could be wrong.
awk -F\| '
$9 !~ /\/*{1,}*/
$9 ~ /\(-{4}, {2,3}/
$9 ~ /\({6}, {2,3}\)/
$9 ~ /\(\+{5}, {2,3}\)/
$9 ~ /\(\+\+{4}, {2,3}\)/
$9 ~... (8 Replies)
Discussion started by: dagamier
8 Replies
LEARN ABOUT LINUX
curl_easy_pause
curl_easy_pause(3) libcurl Manual curl_easy_pause(3)NAME
curl_easy_pause - pause and unpause a connection
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_pause(CURL *handle, int bitmask );
DESCRIPTION
Using this function, you can explicitly mark a running connection to get paused, and you can unpause a connection that was previously
paused.
A connection can be paused by using this function or by letting the read or the write callbacks return the proper magic return code
(CURL_READFUNC_PAUSE and CURL_WRITEFUNC_PAUSE). A write callback that returns pause signals to the library that it couldn't take care of
any data at all, and that data will then be delivered again to the callback when the writing is later unpaused.
NOTE: while it may feel tempting, take care and notice that you cannot call this function from another thread.
When this function is called to unpause reading, the chance is high that you will get your write callback called before this function
returns.
The handle argument is of course identifying the handle that operates on the connection you want to pause or unpause.
The bitmask argument is a set of bits that sets the new state of the connection. The following bits can be used:
CURLPAUSE_RECV
Pause receiving data. There will be no data received on this connection until this function is called again without this bit set.
Thus, the write callback (CURLOPT_WRITEFUNCTION) won't be called.
CURLPAUSE_SEND
Pause sending data. There will be no data sent on this connection until this function is called again without this bit set. Thus,
the read callback (CURLOPT_READFUNCTION) won't be called.
CURLPAUSE_ALL
Convenience define that pauses both directions.
CURLPAUSE_CONT
Convenience define that unpauses both directions
RETURN VALUE
CURLE_OK (zero) means that the option was set properly, and a non-zero return code means something wrong occurred after the new state was
set. See the libcurl-errors(3) man page for the full list with descriptions.
AVAILABILITY
This function was added in libcurl 7.18.0. Before this version, there was no explicit support for pausing transfers.
MEMORY USE
When pausing a read by returning the magic return code from a write callback, the read data is already in libcurl's internal buffers so
it'll have to keep it in an allocated buffer until the reading is again unpaused using this function.
If the downloaded data is compressed and is asked to get uncompressed automatically on download, libcurl will continue to uncompress the
entire downloaded chunk and it will cache the data uncompressed. This has the side- effect that if you download something that is com-
pressed a lot, it can result in a very large data amount needing to be allocated to save the data during the pause. This said, you should
probably consider not using paused reading if you allow libcurl to uncompress data automatically.
SEE ALSO curl_easy_cleanup(3), curl_easy_reset(3)libcurl 7.18.0 17 Dec 2007 curl_easy_pause(3)