diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-01-19 21:46:48 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-19 21:46:48 +0000 |
commit | 9d099f181674ae075aa8ccaeb56acc7b732638af (patch) | |
tree | a376da5671e044e74b4014d43c9125974b4dee0c /src/linux_compatibility.h | |
parent | 8c1f4d7bace6ff2c99d546cedaba890b349e88f8 (diff) | |
download | libbu++-9d099f181674ae075aa8ccaeb56acc7b732638af.tar.gz libbu++-9d099f181674ae075aa8ccaeb56acc7b732638af.tar.bz2 libbu++-9d099f181674ae075aa8ccaeb56acc7b732638af.tar.xz libbu++-9d099f181674ae075aa8ccaeb56acc7b732638af.zip |
This should fix the problem of never knowing if your sockets are closed. Now
Bu::Socket::read will throw an exception if the socket has been closed. Also,
you'll get an exception at object creation if the socket could connect to a
computer, but not the given port.
Diffstat (limited to '')
-rw-r--r-- | src/linux_compatibility.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linux_compatibility.h b/src/linux_compatibility.h index 67016a7..6d3d85e 100644 --- a/src/linux_compatibility.h +++ b/src/linux_compatibility.h | |||
@@ -15,6 +15,8 @@ | |||
15 | #define bu_bind bind | 15 | #define bu_bind bind |
16 | #define bu_listen listen | 16 | #define bu_listen listen |
17 | #define bu_accept accept | 17 | #define bu_accept accept |
18 | #define bu_send send | ||
19 | #define bu_recv recv | ||
18 | 20 | ||
19 | #define bu_gai_strerror gai_strerror | 21 | #define bu_gai_strerror gai_strerror |
20 | 22 | ||