MCPcopy Create free account
hub / github.com/acl-dev/acl / bind_udp

Method bind_udp

lib_acl_cpp/src/stream/socket_stream.cpp:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool 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
109bool socket_stream::bind_multicast(const char *addr, const char *iface,
110 int port, int rw_timeout, unsigned int flags) {

Callers 10

mainFunction · 0.80
runMethod · 0.80
mainFunction · 0.80
main.cppFile · 0.80
mainFunction · 0.80
runFunction · 0.80
runFunction · 0.80
thread_on_initMethod · 0.80
udp_reportMethod · 0.80
handle_requestFunction · 0.80

Calls 3

acl_vstream_closeFunction · 0.85
to_oflagsFunction · 0.85
acl_vstream_bindFunction · 0.85

Tested by

no test coverage detected