| 91 | } |
| 92 | |
| 93 | bool socket_stream::bind_udp(const char* addr, int rw_timeout /* = -1 */, |
| 94 | unsigned flags /* = 0 */) { |
| 95 | if (stream_) { |
| 96 | acl_vstream_close(stream_); |
| 97 | } |
| 98 | |
| 99 | unsigned oflags = to_oflags(flags); |
| 100 | stream_ = acl_vstream_bind(addr, rw_timeout, oflags); |
| 101 | if (stream_ == NULL) { |
| 102 | return false; |
| 103 | } |
| 104 | eof_ = false; |
| 105 | opened_ = true; |
| 106 | return true; |
| 107 | } |
| 108 | |
| 109 | bool socket_stream::bind_multicast(const char *addr, const char *iface, |
| 110 | int port, int rw_timeout, unsigned int flags) { |
no test coverage detected