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

Method bind_multicast

lib_acl_cpp/src/stream/socket_stream.cpp:109–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool socket_stream::bind_multicast(const char *addr, const char *iface,
110 int port, int rw_timeout, unsigned int flags) {
111 if (stream_) {
112 acl_vstream_close(stream_);
113 }
114
115 unsigned oflags = to_oflags(flags);
116 stream_ = acl_vstream_bind_multicast(addr, iface, port,
117 rw_timeout, oflags);
118 if (stream_ == NULL) {
119 return false;
120 }
121 eof_ = false;
122 opened_ = true;
123 return true;
124}
125
126bool socket_stream::multicast_set_ttl(int ttl) const {
127 if (eof_ || stream_ == NULL) {

Callers 1

openMethod · 0.80

Calls 3

acl_vstream_closeFunction · 0.85
to_oflagsFunction · 0.85

Tested by

no test coverage detected