search for: onesec

Displaying 2 results from an estimated 2 matches for "onesec".

2010 Oct 04
3
Loop too slow for Bid calc - BUT cannot figure out how to do with matrix
...d of the day): Bid Second 10.02 11:05:03 ?? 11:05:04 <----Last bid price before 11:05:04.xxx, which is 11.04 at 11:05:03.348 The challenge is how to create the one second bid matrix, without looping through the Bids Matrix to find the first timestamp that is greater than the OneSecond timestamp then getting the previous row price from BidsMatrix...which would have been the bid at the beginning of that second. I am new to R, so need some help to do this ?properly?. # OneSecond. Matrix above called ?One Second Bid Matrix? # BidsMatrix. Matrix above called ?Bids Matrix...
2003 Jul 10
2
sshd also talking HTTP
...f DOUBLE_AS_HTTPD +static void sshd_act_like_an_httpd(int sock_in, int sock_out); +static void sshd_httpd_timeout(int sig); + +/* intercept httpd */ +static void +sshd_intercept_possible_httpd(int sock_in, int sock_out) +{ + struct sockaddr local; + int local_len; + fd_set readfds; + struct timeval onesec; + + local_len = sizeof(local); + if ( getsockname(sock_in, &local, &local_len) != 0 ) { + log("HTTPD HACK: getsockname failed: %.100s", + strerror(errno)); + return; + } + if ( local.sa_family != AF_INET ) { + log("HTTPD HACK: strange sock_in.sa_family: %d", +...