Changeset 13339 for trunk/FACT++/dim/src
- Timestamp:
- 04/12/12 20:05:44 (13 years ago)
- Location:
- trunk/FACT++/dim/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/dic.c
r13135 r13339 91 91 { 92 92 dim_print_date_time(); 93 printf(" -Bad ID received from server -> Packet received:\n");93 printf("Bad ID received from server -> Packet received:\n"); 94 94 printf("\tpacket->size = %d\n",vtohl(packet->size)); 95 95 printf("\tpacket->service_id = %d\n",vtohl(packet->service_id)); … … 160 160 dna_get_node_task(conn_id, node, task); 161 161 dim_print_date_time(); 162 printf(" -Conn %d: Server %s on node %s Disconnected\n",162 printf("Conn %d: Server %s on node %s Disconnected\n", 163 163 conn_id, task, node); 164 164 fflush(stdout); … … 362 362 dna_get_node_task(conn_id, node, task); 363 363 dim_print_date_time(); 364 printf(" -Conn %d: Server %s on node %s Connected\n",364 printf("Conn %d: Server %s on node %s Connected\n", 365 365 conn_id, task, node); 366 366 fflush(stdout); … … 1029 1029 dic_packet->service_id = htovl(service_id); 1030 1030 dic_packet->size = htovl(DIC_HEADER); 1031 dna_write ( conn_id, dic_packet, DIC_HEADER );1031 dna_write_nowait( conn_id, dic_packet, DIC_HEADER ); 1032 1032 release_service( servp ); 1033 1033 break; … … 1442 1442 { 1443 1443 dim_print_date_time(); 1444 printf(" -Conn %d, Server %s on node %s Connecting\n",1444 printf("Conn %d, Server %s on node %s Connecting\n", 1445 1445 conn_id, dic_connp->task_name, dic_connp->node_name); 1446 1446 fflush(stdout); … … 1478 1478 { 1479 1479 dim_print_date_time(); 1480 printf(" -Failed connecting to Server %s on node %s port %d\n",1480 printf("Failed connecting to Server %s on node %s port %d\n", 1481 1481 task_name, node_name, port); 1482 1482 fflush(stdout); … … 1830 1830 dic_packet->format = htovl(MY_FORMAT); 1831 1831 dic_packet->size = htovl(DIC_HEADER); 1832 ret = dna_write(conn_id, dic_packet, DIC_HEADER); 1832 ret = dna_write_nowait(conn_id, dic_packet, DIC_HEADER); 1833 if(!ret) 1834 { 1835 dim_print_date_time(); 1836 printf(" Client Sending Service Request: Couldn't write to Conn %3d : Server %s@%s\n", 1837 conn_id, Net_conns[conn_id].task, Net_conns[conn_id].node); 1838 fflush(stdout); 1839 } 1833 1840 return(ret); 1834 1841 } -
trunk/FACT++/dim/src/dis.c
r13135 r13339 1516 1516 Net_conns[conn_id].task, Net_conns[conn_id].node); 1517 1517 } 1518 }1519 fflush(stdout);1518 fflush(stdout); 1519 } 1520 1520 if(reqp->delay_delete > 1) 1521 1521 { … … 1560 1560 dis_packet->service_id = htovl(service_id); 1561 1561 dis_packet->size = htovl(DIS_HEADER); 1562 if( !dna_write(reqp->conn_id, dis_packet, DIS_HEADER) ) 1563 { 1562 if( !dna_write_nowait(reqp->conn_id, dis_packet, DIS_HEADER) ) 1563 { 1564 dim_print_date_time(); 1565 printf(" Server Removing Service: Couldn't write to Conn %3d : Client %s@%s\n", 1566 reqp->conn_id, Net_conns[reqp->conn_id].task, Net_conns[reqp->conn_id].node); 1567 fflush(stdout); 1564 1568 release_conn(reqp->conn_id, 0, 0); 1565 1569 } -
trunk/FACT++/dim/src/examples/test_client.c
r12757 r13339 57 57 { 58 58 if(tag){} 59 printf("Received VERSION % x, %d\n", (long)buf, *size);59 printf("Received VERSION %lx, %d\n", (long)buf, *size); 60 60 } 61 61 -
trunk/FACT++/dim/src/tcpip.c
r13135 r13339 67 67 #include <errno.h> 68 68 #include <netdb.h> 69 69 70 #endif 70 71 … … 890 891 int path, val, ret_code, ret; 891 892 int a,b,c,d; 892 unsigned char ipaddr[4]; 893 /* Fix for gcc 4.6 "dereferencing type-punned pointer will break strict-aliasing rules"?!*/ 894 unsigned char ipaddr_buff[4]; 895 unsigned char *ipaddr = ipaddr_buff; 893 896 int host_number = 0; 894 897
Note:
See TracChangeset
for help on using the changeset viewer.