@@ -82,7 +82,7 @@ ArtNetController::ArtNetController()
8282 art_poll_reply_.Style = static_cast <uint8_t >(StyleCode::kServer );
8383 network::iface::CopyMacAddressTo (art_poll_reply_.MAC );
8484 art_poll_reply_.bind_index = 1 ;
85- ip.u32 = net ::GetPrimaryIp ();
85+ ip.u32 = network ::GetPrimaryIp ();
8686 memcpy (art_poll_reply_.IPAddress , ip.u8 , sizeof (art_poll_reply_.IPAddress ));
8787#if (ARTNET_VERSION >= 4)
8888 memcpy (art_poll_reply_.BindIp , ip.u8 , sizeof (art_poll_reply_.BindIp ));
@@ -244,10 +244,10 @@ void ArtNetController::Start()
244244 DEBUG_ENTRY ();
245245
246246 assert (handle_ == -1 );
247- handle_ = net ::udp::Begin (artnet::kUdpPort , StaticCallbackFunction);
247+ handle_ = network ::udp::Begin (artnet::kUdpPort , StaticCallbackFunction);
248248 assert (handle_ != -1 );
249249
250- net ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(&m_ArtNetPoll), sizeof (struct ArtPoll ), net ::GetBroadcastIp (), artnet::kUdpPort );
250+ network ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(&m_ArtNetPoll), sizeof (struct ArtPoll ), network ::GetBroadcastIp (), artnet::kUdpPort );
251251
252252 state_.status = artnet::Status::kOn ;
253253
@@ -260,7 +260,7 @@ void ArtNetController::Stop()
260260
261261 // FIXME ArtNetController::Stop
262262 //
263- // net ::udp::End(artnet::UDP_PORT);
263+ // network ::udp::End(artnet::UDP_PORT);
264264 // handle_ = -1;
265265 //
266266 // state_.status = artnet::Status::OFF;
@@ -330,7 +330,7 @@ void ArtNetController::HandleDmxOut(uint16_t nUniverse, const uint8_t* pDmxData,
330330 {
331331 for (uint32_t index = 0 ; index < count; index++)
332332 {
333- net ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtDmx), sizeof (struct ArtDmx ), IpAddresses->pIpAddresses [index], artnet::kUdpPort );
333+ network ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtDmx), sizeof (struct ArtDmx ), IpAddresses->pIpAddresses [index], artnet::kUdpPort );
334334 }
335335
336336 m_bDmxHandled = true ;
@@ -341,7 +341,7 @@ void ArtNetController::HandleDmxOut(uint16_t nUniverse, const uint8_t* pDmxData,
341341
342342 if (!m_bUnicast || (count > 40 ) || !m_bForceBroadcast)
343343 {
344- net ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtDmx), sizeof (struct ArtDmx ), net ::GetBroadcastIp (), artnet::kUdpPort );
344+ network ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtDmx), sizeof (struct ArtDmx ), network ::GetBroadcastIp (), artnet::kUdpPort );
345345
346346 m_bDmxHandled = true ;
347347 }
@@ -354,7 +354,7 @@ void ArtNetController::HandleSync()
354354 if (m_bSynchronization && m_bDmxHandled)
355355 {
356356 m_bDmxHandled = false ;
357- net ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtSync), sizeof (struct ArtSync ), net ::GetBroadcastIp (), artnet::kUdpPort );
357+ network ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtSync), sizeof (struct ArtSync ), network ::GetBroadcastIp (), artnet::kUdpPort );
358358 }
359359}
360360
@@ -397,7 +397,7 @@ void ArtNetController::HandleBlackout()
397397
398398 for (uint32_t index = 0 ; index < count; index++)
399399 {
400- net ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtDmx), sizeof (struct ArtDmx ), kIpAddresses ->pIpAddresses [index],
400+ network ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtDmx), sizeof (struct ArtDmx ), kIpAddresses ->pIpAddresses [index],
401401 artnet::kUdpPort );
402402 }
403403
@@ -415,7 +415,7 @@ void ArtNetController::HandleBlackout()
415415 m_pArtDmx->Sequence = 1 ;
416416 }
417417
418- net ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtDmx), sizeof (struct ArtDmx ), net ::GetBroadcastIp (), artnet::kUdpPort );
418+ network ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(m_pArtDmx), sizeof (struct ArtDmx ), network ::GetBroadcastIp (), artnet::kUdpPort );
419419 }
420420 }
421421
@@ -436,7 +436,7 @@ void ArtNetController::ProcessPoll()
436436
437437 if (__builtin_expect ((kCurrentMillis - m_nLastPollMillis > POLL_INTERVAL_MILLIS), 0 ))
438438 {
439- net ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(&m_ArtNetPoll), sizeof (struct ArtPoll ), net ::GetBroadcastIp (), artnet::kUdpPort );
439+ network ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(&m_ArtNetPoll), sizeof (struct ArtPoll ), network ::GetBroadcastIp (), artnet::kUdpPort );
440440 m_nLastPollMillis = kCurrentMillis ;
441441
442442#ifndef NDEBUG
@@ -461,7 +461,7 @@ void ArtNetController::HandlePoll(const uint8_t* buffer, uint32_t from_ip)
461461 snprintf (reinterpret_cast <char *>(art_poll_reply->NodeReport ), artnet::kReportLength , " #%04x [%u]" , static_cast <int >(state_.reportcode ),
462462 static_cast <unsigned >(state_.art .poll_reply_count ++));
463463
464- net ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(&art_poll_reply), sizeof (artnet::ArtPollReply), from_ip, artnet::kUdpPort );
464+ network ::udp::Send (handle_, reinterpret_cast <const uint8_t *>(&art_poll_reply), sizeof (artnet::ArtPollReply), from_ip, artnet::kUdpPort );
465465
466466 DEBUG_EXIT ();
467467}
@@ -471,7 +471,7 @@ void ArtNetController::HandlePollReply(const uint8_t* buffer, uint32_t from_ip)
471471 DEBUG_ENTRY ();
472472 DEBUG_PRINTF (IPSTR, IP2STR (from_ip));
473473
474- if (from_ip != net ::GetPrimaryIp ())
474+ if (from_ip != network ::GetPrimaryIp ())
475475 {
476476 Add (reinterpret_cast <const artnet::ArtPollReply*>(buffer));
477477
0 commit comments