Skip to content

Commit

Permalink
add comments to python script
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jul 27, 2023
1 parent d3c8d53 commit 0db0b59
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/v2i-hub/CDASimAdapter/scripts/udp_socket_server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import socket

'''
Purpose: This script is to launch a UDP server and used to test the CDASimAdapter simulation registration.
Usage: Run this script first, it shall open a socket listenning to port 6767.
Launch the v2xhub and enable the CDASimAdapter plugin. Upon the plugin startup,
it sends registration message to port 6767. This UDP server shall receive the registration message,
and print this message on the terminal.
Run command: python3 udp_socket_server.py
'''
UDP_IP = "127.0.0.1"
UDP_SOCKET_PORT_SIM_REGISTRATION = 6767

Expand Down

0 comments on commit 0db0b59

Please sign in to comment.