summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrahul2019-11-11 11:45:14 +0530
committerrahul2019-11-11 11:45:14 +0530
commit613f5460afb2be89262ed19ef5f90fa3604bd368 (patch)
treee1538ba9efce7d5491073978540d6683d0dbe692 /src
parent68d0a7a3ebea687906d97d6e660a975540de968b (diff)
downloadnghdl-613f5460afb2be89262ed19ef5f90fa3604bd368.tar.gz
nghdl-613f5460afb2be89262ed19ef5f90fa3604bd368.tar.bz2
nghdl-613f5460afb2be89262ed19ef5f90fa3604bd368.zip
modified cfunc
Diffstat (limited to 'src')
-rw-r--r--src/model_generation.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/model_generation.py b/src/model_generation.py
index a9fda65..dffd690 100644
--- a/src/model_generation.py
+++ b/src/model_generation.py
@@ -213,7 +213,7 @@ systime_info='''
time_t systime;
systime = time(NULL);
printf(ctime(&systime));
- printf("Client-Initialising ngspice \\n");
+ printf("Client-Initialising GHDL...");
fprintf(log_client,"Setup Client Server Connection at %s \\n",ctime(&systime));
'''
@@ -280,34 +280,34 @@ client_fetch_ip='''
char* my_ip = STATIC_VAR(my_ip);
host = gethostbyname(my_ip);
- printf("Client-Creating Client Socket \\n");
- fprintf(log_client,"Creating client socket \\n");
+ printf("\\n\\nClient-Creating Socket \\n");
+ fprintf(log_client,"Creating client socket \\n");
'''
create_socket='''
- //Creating socket for client
- if ((socket_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
- {
- perror("Client-Error while creating client Socket \\n");
- fprintf(log_client,"Error while creating client sockte \\n");
- exit(1);
- }
-
- printf("Client-Client Socket created successfully \\n");
- printf("Client- Socket Id : %d \\n",socket_fd);
- fprintf(log_client,"Client-Client Socket created successfully \\n");
- fprintf(log_client,"Client- Socket Id : %d \\n",socket_fd);
-
- // memset(&server_addr, 0, sizeof(server_addr));
- server_addr.sin_family = AF_INET;
- server_addr.sin_port = htons(sock_port);
- server_addr.sin_addr = *((struct in_addr *)host->h_addr);
- bzero(&(server_addr.sin_zero),8);
+ //Creating socket for client
+ if ((socket_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
+ {
+ perror("Client-Error while creating client Socket \\n");
+ fprintf(log_client,"Error while creating client socket \\n");
+ exit(1);
+ }
+
+ printf("Client-Client Socket created successfully \\n");
+ printf("Client- Socket Id : %d \\n",socket_fd);
+ fprintf(log_client,"Client-Client Socket created successfully \\n");
+ fprintf(log_client,"Client- Socket Id : %d \\n",socket_fd);
+
+ // memset(&server_addr, 0, sizeof(server_addr));
+ server_addr.sin_family = AF_INET;
+ server_addr.sin_port = htons(sock_port);
+ server_addr.sin_addr = *((struct in_addr *)host->h_addr);
+ bzero(&(server_addr.sin_zero),8);
'''
connect_server='''
- printf("Client-Connecting to server \\n");
+ printf("Client-Connecting to server \\n");
fprintf(log_client,"Client-Connecting to server \\n");
//Conneting to server