*** empty log message ***

svn path=/trunk/boinc/; revision=1511
This commit is contained in:
Karl Chen 2003-06-17 02:09:25 +00:00
parent 9d73195870
commit 813da9e8b1
1 changed files with 8 additions and 2 deletions

View File

@ -43,14 +43,20 @@ CODE is evaluated every 128 bytes transferred from server to client.
Some variables you can access/modify: Some variables you can access/modify:
\$target, \$client : perl IO::Handle::INET objects \$target, \$client : perl IO::Handle::INET objects
\$nconnections : number of connections so far \$nconnections : number of connections so far
\$url : url of request (if applicable)
\$time : seconds since server started
\$chars, \$nchars : characters & length about to send to client. \$chars, \$nchars : characters & length about to send to client.
\$bytes_transferred : characters already sent to client \$bytes_transferred : characters already sent to client
\$done, \$success : finished transfer; successful transfer \$done, \$success : finished transfer; successful transfer
For more, view the code. For more, view the code.
You can call functions like exit, sleep, \$target\->close, \$target\->print. Functions:
You should return 1 to indicate success (otherwise testproxy will warn). kill_server, if_done_kill, if_done_ping
You can also call any functions like exit, sleep, \$target\->close,
\$target\->print. You should return 1 to indicate success (otherwise
testproxy will warn).
Examples: Examples:
# fail connections for first 3 connections # fail connections for first 3 connections