mirror of
https://github.com/nasa/trick.git
synced 2025-06-19 15:43:54 +00:00
Add more Variable Server unit and integration tests, clean up and clarify naming
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import trick
|
||||
import socket
|
||||
|
||||
from trick.unit_test import *
|
||||
|
||||
@ -11,9 +10,11 @@ def main():
|
||||
trick.exec_set_software_frame(0.01)
|
||||
# trick.set_var_server_info_msg_on()
|
||||
|
||||
trick.var_server_create_tcp_socket('localhost', 49000)
|
||||
trick.var_server_create_udp_socket('', 48000)
|
||||
trick.var_server_create_multicast_socket('224.10.10.10','', 47000)
|
||||
hostname = trick.var_server_get_hostname()
|
||||
|
||||
trick.var_server_create_tcp_socket(hostname, 49000)
|
||||
trick.var_server_create_udp_socket(hostname, 48000)
|
||||
trick.var_server_create_multicast_socket('224.10.10.10',hostname, 47000)
|
||||
|
||||
trick.exec_set_terminate_time(100.0)
|
||||
|
||||
|
Reference in New Issue
Block a user