Luke Dashjr
|
55f1d71b5c
Merge commit '51d11a2' into HEAD
|
13 years ago |
Con Kolivas
|
51d11a28f9
Provide a wrapper for aligning lengths of size_t to 4 byte boundaries.
|
13 years ago |
Luke Dashjr
|
929de15e5b
Merge commit '6e2e7d3' into cg_merges_20121231
|
13 years ago |
Con Kolivas
|
6e2e7d36de
Differentiate socket full from sock full.
|
13 years ago |
Luke Dashjr
|
e5f2ed1520
Merge commit '944af31' into cg_merges_20121226
|
13 years ago |
Con Kolivas
|
944af31b99
Parse anything in the stratum socket if it's full without waiting. Empty the socket even if a connection is not needed in case there are share returns.
|
13 years ago |
Luke Dashjr
|
7ed01d4d5b
Bugfix: Since we are using pipes for select notifier on *nix, we need to use read/write there
|
13 years ago |
Luke Dashjr
|
28106b125c
Bugfix: Winsock needs send/recv for sockets, not write/read
|
13 years ago |
Luke Dashjr
|
8572e0e448
Merge branch 'refactor_target' into bfgminer
|
13 years ago |
Luke Dashjr
|
bfab076d59
Bugfix: Clean up share hashing and target checks, fixing share difficulty calculation for above-target would-be-shares
|
13 years ago |
Luke Dashjr
|
a11f4234a0
Run a single share submission thread asynchronously submitting all shares in parallel
|
13 years ago |
Luke Dashjr
|
ff695b39fb
Split up json_rpc_call so it can be used asynchronously in libcurl-multi
|
13 years ago |
Con Kolivas
|
fc5d3a0eaf
Suspend stratum connections to backup pools when there is no requirement to potentially grab work from them.
|
13 years ago |
Con Kolivas
|
16637ac91e
Fix missing export for RenameThread.
|
13 years ago |
Con Kolivas
|
f94cff77e6
Microoptimise and remove redundant copy of strdup function in calloc_strcat.
|
13 years ago |
Con Kolivas
|
0ae02c6ec4
Since we will be using calloc_str to put a string into it, convert the function to calloc_strcat which does it automatically.
|
13 years ago |
Con Kolivas
|
ee8609d9a9
Provide helper functions calloc_str and realloc_strcat to create and extend arbitrary length arrays based on string length.
|
13 years ago |
Paul Sheppard
|
9f74e650b3
Tidy up device error counts
|
13 years ago |
Con Kolivas
|
1afb794cb3
Cast socketfail to integer since SOCKET is an unsigned int on windows.
|
13 years ago |
Con Kolivas
|
a8d693029a
Move stratum sockets to curl infrastructure with locking around send+recv to begin support for proxies and ssl.
|
13 years ago |
Con Kolivas
|
deb0a9b644
Windows doesn't work with MSG_PEEK on recv so move to a continuously updating buffer for incoming messages.
|
13 years ago |
Con Kolivas
|
c113534feb
Begin support for mingw stratum build.
|
13 years ago |
Con Kolivas
|
b5617734fa
Provide locking around stratum send operations to avoid races.
|
13 years ago |
Con Kolivas
|
2de951518e
Abstract out share submit as a function to be useable by stratum.
|
13 years ago |
Con Kolivas
|
739cba28a7
Rename parse_stratum to parse_method as it is only for stratum messages that contain methods.
|
13 years ago |
Con Kolivas
|
7415d7aaa0
Begin implementing a hash database of submissions and attempt sending results.
|
13 years ago |
Con Kolivas
|
56255a0c86
Create a stratum thread per pool that has stratum that monitors the socket and serves received data.
|
13 years ago |
Con Kolivas
|
a6f1a62220
Create helper functions for checking when a socket is ready to read on and receive a single line at a time.
|
13 years ago |
Con Kolivas
|
a1b17229b8
Initiate stratum and grab first json result.
|
13 years ago |
Con Kolivas
|
58873c1dfa
Get detailed addressinfo from the parsed URL for future raw socket usage when possible. IPV4 only for now.
|
13 years ago |