A
alexis
hi,
i am writing a server that may be run from different systems. is
there a way to determine what system (the one currently running the
program) is, programatically? i was thinking about using getconf
WORD_BIT but i'm not sure that is enough. i need to know the bitness
b/c i am sending raw bytes from client to server and need to know how
many bits/int, etc.
also, how do you know if the size of a long is the same as or larger
than an int? does it depend on the system you're on? is there any way
to determine this?
thanks!
i am writing a server that may be run from different systems. is
there a way to determine what system (the one currently running the
program) is, programatically? i was thinking about using getconf
WORD_BIT but i'm not sure that is enough. i need to know the bitness
b/c i am sending raw bytes from client to server and need to know how
many bits/int, etc.
also, how do you know if the size of a long is the same as or larger
than an int? does it depend on the system you're on? is there any way
to determine this?
thanks!