LNContext.cpp 639 B

12345678910111213141516171819202122232425262728
  1. #include "stdafx.h"
  2. #include "LNContext.h"
  3. CLNContext::CLNContext()
  4. {
  5. }
  6. CLNContext::~CLNContext()
  7. {
  8. }
  9. void CLNContext::addresses(const ACE_INET_Addr& remote_address, const ACE_INET_Addr& local_address)
  10. {
  11. auto ip_addr = local_address.get_ip_address();
  12. auto strIp = local_address.get_host_addr();;
  13. if (ip_addr != 0x7F000001)
  14. int ii = 0;
  15. SPDLOG_ERROR("new connection: {}:{} local:{}:{}", remote_address.get_host_addr(), remote_address.get_port_number(),
  16. strIp, local_address.get_port_number());
  17. }
  18. void CLNContext::handle_time_out(const ACE_Time_Value& tv, const void* act /*= 0*/)
  19. {
  20. int ii = 0;
  21. }