From b533da9ede041621be3588867dd966ee16568c28 Mon Sep 17 00:00:00 2001 From: athulappadan Date: Thu, 21 May 2015 15:51:46 +0530 Subject: changes for multiple output feature --- src/model_generation.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/model_generation.py') diff --git a/src/model_generation.py b/src/model_generation.py index 5e854a0..c5350c0 100755 --- a/src/model_generation.py +++ b/src/model_generation.py @@ -166,7 +166,8 @@ var_section=''' log_client=fopen("client.log","a"); int socket_fd, bytes_recieved; char send_data[1024]; - char recv_data[1024]; + char recv_data[1024]; + char *key_iter; struct hostent *host; struct sockaddr_in server_addr; double time_limit = PARAM(stop_time); @@ -349,7 +350,7 @@ recv_data=''' printf("Client-Either Connection Closed or Error \\n"); exit(1); } - //recv_data[bytes_recieved] = '\\0'; + recv_data[bytes_recieved] = '\\0'; printf("Client-Message Received From Server - %s\\n",recv_data); fprintf(log_client,"Message Received From Server- %s\\n",recv_data); @@ -362,14 +363,17 @@ sch_output_event=[] for item in output_port: sch_output_event.append("\t\t\t/* Scheduling event and processing them */\n\ -\t\t\tfor(Ii=0;Ii