Con Kolivas
|
7b452b361f
|
Remove macro placeholders for locks in preparation for implementing lock tracking
|
10 years ago |
Con Kolivas
|
0f08e9518f
|
Add helpers for rw timed locks
|
10 years ago |
Con Kolivas
|
b7f7e71f7a
|
Make dealloc entirely a macro allowing the compiler to optimise out the pointer nulling if it's unneeded
|
10 years ago |
Con Kolivas
|
cced9e43b2
|
Add a helper function to libckpool for setting a json object
|
10 years ago |
Con Kolivas
|
e5b9e84129
|
Add a helper function to check a hex string is valid
|
10 years ago |
Con Kolivas
|
8622718c48
|
Make jansson use ckalloc for its malloc
|
10 years ago |
Con Kolivas
|
098930afd5
|
Add a completion timeout helper function
|
10 years ago |
Con Kolivas
|
3e335c3b38
|
Abort any functions on signal handling, cleaning up cksem functions
|
10 years ago |
kanoi
|
503ec09f27
|
make LOG* macros typecheck and fix related errors/warnings
|
10 years ago |
Con Kolivas
|
65f52112ba
|
Confirm all handed over sockets match the configured sockets
|
10 years ago |
Con Kolivas
|
be87144fe1
|
Provide a helper function for turning a socket into a url and port
|
10 years ago |
Con Kolivas
|
02dfda6814
|
Add a helper function for getting an addinfo from a url and port
|
10 years ago |
Con Kolivas
|
e5f26443af
|
Make url from sockaddr take port as a char
|
10 years ago |
Con Kolivas
|
6d40647334
|
Add a helper function for converting a struct sockaddr into a url and port
|
10 years ago |
Con Kolivas
|
c57782af25
|
Avoid variable names in json checking macros that may conflict
|
10 years ago |
kanoi
|
063d723a31
|
allow ckpmsg to set the unix recv timeout
|
10 years ago |
Con Kolivas
|
d1e08ac9c2
|
Add source debugging to close failure
|
10 years ago |
Con Kolivas
|
27ac4e23ef
|
Parse the difficultydefault entry returned from authorise
|
10 years ago |
Con Kolivas
|
8e29c957e0
|
Add helper function to set no linger
|
10 years ago |
Con Kolivas
|
bae2493346
|
Add a helper for close which invalidates the file handle as well
|
10 years ago |
Con Kolivas
|
e4f1a87050
|
Add a helper function for pthread_mutex_timedlock
|
10 years ago |
Con Kolivas
|
75eb1cf155
|
Add error checking to json set wrappers
|
10 years ago |
Con Kolivas
|
67f6a0148c
|
Provide a macro helper for json_pack that checks the return value and describes what the error is and where it came from
|
10 years ago |
kanoi
|
7daa709781
|
libckpool - add semaphone function set as cksum_*
|
10 years ago |
Con Kolivas
|
a832b64006
|
Fix getfd function to really send a full struct msghdr returning a new fd to copy sockets across processes
|
10 years ago |
kanoi
|
3e6fe0dde7
|
libckpool - make the rotating filename a separate function
|
10 years ago |
Con Kolivas
|
5b2b4c73ef
|
Remove all handling of interrupted calls which may have been blocking appropriate failure modes
|
10 years ago |
Con Kolivas
|
8dbc90fbaf
|
Add a helper function for safely checking if a buffer matches a command
|
10 years ago |
Con Kolivas
|
2b86f9bde1
|
Add a safe strcmp helper function
|
10 years ago |
ckolivas
|
e8c47e29fa
|
Move generic ckmsgq functions to ckpool.c to allow ckp to be included
|
11 years ago |
ckolivas
|
997a88191c
|
Make create_ckmsgq return a pointer to the generated queue and export the ckdbq functions
|
11 years ago |
ckolivas
|
50463445c0
|
Create a set of generic queue receiving thread and processing functions
|
11 years ago |
kanoi
|
027668b84f
|
ckdb - homepage stats
|
11 years ago |
Con Kolivas
|
c4c9a7b2a6
|
Create a rotating log function that changes hourly with an exclusive lock while writing
|
11 years ago |
Con Kolivas
|
6f099e43af
|
Fix missing error code
|
11 years ago |
Con Kolivas
|
7ff39bf07e
|
Use an enum for various errors and reject reasons for shares and put their strings in libckpool
|
11 years ago |
Con Kolivas
|
bb83f99a44
|
Convert workinfo id to int64_t to be compatible with database logging and add fields to the json that will be logged
|
11 years ago |
Con Kolivas
|
6c4abba93c
|
Provide a way to send binary data over unix sockets
|
11 years ago |
Con Kolivas
|
6a3a333031
|
connsock_t is a ckpool only struct
|
11 years ago |
Con Kolivas
|
19c31ad0c3
|
Fix inappropriate json object stealing
|
11 years ago |
Con Kolivas
|
93735544ca
|
Add debugging to hex2bin to know where it failed from
|
11 years ago |
Con Kolivas
|
b77e481c7e
|
Use a weak logmsg function within libckpool allowing it to be included standalone without touching ckpool code
|
11 years ago |
Con Kolivas
|
bc78acceca
|
Move the functions that require ckpool specific variable types out of libckpool
|
11 years ago |
Con Kolivas
|
ed341c9502
|
Create the beginnings of a separate tool to talk to ckpool sockets
|
11 years ago |
Con Kolivas
|
c4f0d57ae8
|
Fix various memory leaks
|
11 years ago |
Con Kolivas
|
24643e9ba0
|
Get the network difficulty from the block header and use that to determine possible block solves in proxy mode
|
11 years ago |
Con Kolivas
|
ed8f73a426
|
Unix message failures are almost always fatal so add debugging about where the functions were called from
|
11 years ago |
Con Kolivas
|
4f60dc1b8a
|
Provide a way to extract a serialised integer
|
11 years ago |
Con Kolivas
|
54883b37fd
|
Make read_socket_line accept a timeout in seconds
|
11 years ago |
Con Kolivas
|
dacb261ad5
|
Store the proxy method results in a unique struct and add it to a hashtable of notifications
|
11 years ago |