Changeset 13339 for trunk/FACT++/dim
- Timestamp:
- 04/12/12 20:05:44 (13 years ago)
- Location:
- trunk/FACT++/dim
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/README_v19.txt
r13135 r13339 1 1 2 DIM version 19.3 0Release Notes2 DIM version 19.31 Release Notes 3 3 4 4 Notes 1 and 2 for Unix Users only … … 17 17 Dns </dev/null >& dns.log & 18 18 19 NOTE 3: The Version Number service provided by servers is now set to 1930. 19 NOTE 3: The Version Number service provided by servers is now set to 1931. 20 21 30/03/2012 22 Changes for version 19.31: 23 - changed dna_write to dna_write_nowait for servers when removing a service and for clients 24 when releasing and subscribing to a service. Dna_write cannot be used for the same connection 25 as dna_write_nowait as it will mingle the packets. 26 - Removed more compiler warnings. 20 27 21 28 14/03/2012 -
trunk/FACT++/dim/dim/dim.h
r13135 r13339 14 14 #include "dim_common.h" 15 15 16 #define DIM_VERSION_NUMBER 193 016 #define DIM_VERSION_NUMBER 1931 17 17 18 18 #define MY_LITTLE_ENDIAN 0x1 -
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.