PRINT_ERROR
sherr(_err, _msg)
INADDR_LOOPBACK
0x7f000001
MAX_SHARE_NAME_LENGTH
136
MAX_SHARE_PASS_LENGTH
136
MAX_SHARE_HASH_LENGTH
136
SHARE_DEFAULT_EXPIRE_TIME
1514743200
A shtime_t representation of 01/01/60 UTC.
MAX_SHARE_SESSION_TIME
10368000
typedef uint64_t shsize_t
A specification of byte size.
Note
This type is typically only used for disk storage or socket communications. A regular size_t is used when the bitsize of a number being reference is not restricted.
typedef long double shnum_t
A large floating-point number.
char* get_libshare_email
(void)
An email address where bug reports can be submitted.
char* get_libshare_version
(void)
The current libshare library version.
char* get_libshare_title
(void)
The libshare library package name.
const char* get_libshare_path
(void)
Unix: /var/lib/share or ~/.share Windows: C:\.share Mac: ~/Library/Application Support/.share.
Return Value
The directory where share library persistent data is stored.
Note
This value can be overwritten with a shared preference.
const char* get_libshare_account_name
(void)
uint64_t get_libshare_account_id
(void)
int shnum_prec
(shnum_t fval)
Calculates the usable floating point precision (E notation).
shnum_t shnum_prec_dim
(shnum_t fval, int prec)
Reduce the precision of a large number to specific E exponent.
void shnum_set
(shnum_t val, uint64_t *bin_p)
Fills a uint64_t with a compatch version of a large number in network-byte order.
shnum_t shnum_get
(uint64_t val_bin)
Obtains a large number from a compact uint64_t value in host-byte order.
double shnum_getf
(uint64_t val_bin)
Obtain a double representation from a compact shnum_t value.
int shnum_sign
(shnum_t v)
int shclose
(int fd)
Close the file descriptor of a socket created by a libshare connection.
See
shconnect()
group__libshare__net_1ga95e7f7ab4c827b012d3e94f0e0deaa12
member