Replaced socket_init calls with tc_init.

Some classes were still calling socket_init which had been removed. Replaced those calls with tc_init.

Make compiled and make test successfully ran all tests. Jenkins should be happy now.
This commit is contained in:
Christopher LaChance 2017-06-21 08:59:22 -05:00
parent 87423ec5aa
commit 86aaa8e9fa
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ int Trick::MonteCarlo::initialize_sockets() {
tc_error(&connection_device, 0);
/** <ul><li> Initialize the sockets for communication with slaves. */
int return_value = socket_init(&listen_device);
int return_value = tc_init(&listen_device);
if (return_value != TC_SUCCESS) {
if (verbosity >= ERROR) {
message_publish(MSG_ERROR, "Monte [Master] Failed to initialize status communication socket.\n") ;

View File

@ -29,7 +29,7 @@ int Trick::MonteCarlo::slave_init() {
/** <li> Initialize the sockets. */
tc_error(&listen_device, 0);
tc_error(&connection_device, 0);
socket_init(&listen_device);
tc_init(&listen_device);
listen_device.disable_handshaking = TC_COMM_TRUE;
/** <li> Connect to the master and write the port over which we are listening for new runs. */