--
-- LLRNet - network part of LLR
--
-- (C) 2004-2005 Vincent Penne
--
-- Released under GNU LIBRARY GENERAL PUBLIC LICENSE
-- (See file LICENSE that must be included with this software)
--
--
-- CLIENT CONFIGURATION FILE
--
-- WARNING: comments start with two dashes 
--

-- server location
server = "llrnet.rieselsieve.com"
port =   7000

-- username
username = "nobody"

-- uncomment the following line to allow remote control of your client
-- see also options below to configure who can connect
GUIremote = 1

-- if several clients are running on the same machine, give each of them
-- a different GUI port to listen to
GUIport = 6999

-- GUI clients connection configuration
-- by default, allow only local connections
GUImask  = "255.255.255.255"
GUIallow = "127.0.0.1"
-- example allowing any connection on a local network 192.168.1.*
--GUImask  = "255.255.255.0"
--GUIallow = "192.168.1.0"

-- GUI password, it is strongly recommended to change it 
-- if you don't restrict GUI clients to local connections
GUIpassword = "llrnet"

-- name of the file containing current job
workFile = "workfile.txt"

-- name of the file containing results to send to the server
tosendFile = "tosend.txt"

-- number of time to retry to send results before going for next WU.
-- set it to 0 for no retries, for user with no permanent connection
-- this is the suggested setting as it will save them precious 
-- minutes of useless retries (the program sleep for one minute
-- between two retries)
sendRetries = 0

-- uncomment line below to work only once
--once = 1

-- uncomment the line below for verbose output
--llrVerbose(1)

-- to ask several WU job to the server at a time, set the variable below
-- to something greater than 1 (but no more than 100)
WUCacheSize = 2


-- Uncomment the two functions below to launch some script each
-- time you respectively find a prime, and submit a new result

--function OnPrime(t, k, n)
--   local script = "onprime.sh"
--   if WIN32 then
--      script = "onprime.bat"
--   end
--   execute(format("%s %d %d %d", script, t, k, n))
--end

--function OnSubmit(t, k, n, result, residue)
--   -- notice : result is 0 for a prime, -2 for non prime, and -1 on error
--   local script = "onsubmit.sh"
--   if WIN32 then
--      script = "onsubmit.bat"
--   end
--   execute(format("%s %d %d %d %d %s", script, t, k, n, result, residue))
--end


-- WIN32 specific settings

-- uncomment the line below to hide the tray icon on startup
--hideTrayIcon = 1

-- change this value to a unique name for each client you want to run
-- as service on the same machine
serviceName = "LLRnet"


-- MY TEST
--server = "localhost"
--port =   7000
--username = "zig"
