Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Refactor the mainrelay.c #1301

Draft
wants to merge 34 commits into
base: master
Choose a base branch
from
Draft

Commits on Nov 22, 2023

  1. Configuration menu
    Copy the full SHA
    1d4a694 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. Refactor: Modify udp_recvfrom. Raplace recvmsg with WSARecvMsg in win…

    …dows
    
    - Because of getsockopt is not support IPV6_TCLASS in windows.
      it need WSARecvMsg get IPV6_TCLASS. and it must called after bind().
    - Because of no recvmsg in windows.  Raplace recvmsg with WSARecvMsg
    
    see:
      - https://learn.microsoft.com/windows/win32/winsock/ipproto-ipv6-socket-options
      - https://learn.microsoft.com/windows/win32/api/mswsock/nc-mswsock-lpfn_wsarecvmsg
    KangLin committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    7d824a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f4885ff View commit details
    Browse the repository at this point in the history
  3. Log: add log category

    KangLin committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    537e560 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b61a060 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    86ef9e2 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. Refactor:

    - The configuration file and log parameters in the command line must be processed first
    - Refactor find_config_file
    - Refactor read_config_file
    - Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
    - Remove exit()
    KangLin committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    88f760c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f862b79 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    40f073d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3bcd50f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    17eaa35 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a1c03e6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c451810 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    09352cc View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. Configuration menu
    Copy the full SHA
    202bdad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be095e4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7a10d58 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ff10209 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0795a0d View commit details
    Browse the repository at this point in the history
  6. Refactor: clean lister server

    - add remove_listener()
    - add remove_socket_per_thread_udp_listener_servers()
    - add remove_socket_per_endpoint_udp_listener_servers()
    - add remove_socket_per_session_udp_listener_servers()
    - rename clean_server() to clean_dtls_listener_server()
    KangLin committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    e9c019a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    866ad17 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c255b59 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c937210 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    908b405 View commit details
    Browse the repository at this point in the history
  11. Refactor: modify create_server_listener to remove exit() (coturn#1327)

    - Remove exit() and free resource
    - Remove goto
    - Optimized "{}" multiple nesting,
    - Replace c98 (restrict variable declaration position at the beginning of the block)
      with c11 (no restriction variable declaration position in the block)
    - Optimized the multiple nesting and length of if{}.
    KangLin committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    2a99c69 View commit details
    Browse the repository at this point in the history
  12. Refactor: fix block bug in relay_receive_message() and

    relay_receive_auth_message()
    Using non-blocking improves thread performance
    KangLin committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    8f46296 View commit details
    Browse the repository at this point in the history
  13. Refactor: modify create_server_socket to coturn#1327

    - Remove exit() and free resource
    - Remove goto
    - Optimized "{}" multiple nesting,
    - Replace c98 (restrict variable declaration position at the beginning of the block)
      with c11 (no restriction variable declaration position in the block)
    - Replace perror with TURN_LOG_FUNC
    KangLin committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    1153eff View commit details
    Browse the repository at this point in the history
  14. CI: modify lint.yml

    KangLin committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    37f14f8 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c91f063 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    90946b7 View commit details
    Browse the repository at this point in the history
  17. Refactor: modify log

    KangLin committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    f855317 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2cd39e0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6622494 View commit details
    Browse the repository at this point in the history
  20. Refactor: addr_bind (coturn#1327)

    - Remove goto
    - Optimized "{}" multiple nesting,
    - Replace c98 (restrict variable declaration position at the beginning of the block)
      with c11 (no restriction variable declaration position in the block)
      Optimized the multiple nesting and length of if{}.
    KangLin committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    88430b9 View commit details
    Browse the repository at this point in the history