Changeset 13339


Ignore:
Timestamp:
04/12/12 20:05:44 (13 years ago)
Author:
tbretz
Message:
Updated to v19r31
Location:
trunk/FACT++/dim
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/README_v19.txt

    r13135 r13339  
    11
    2                     DIM version 19.30 Release Notes
     2                    DIM version 19.31 Release Notes
    33
    44Notes 1 and 2 for Unix Users only
     
    1717                Dns </dev/null >& dns.log &
    1818
    19 NOTE 3: The Version Number service provided by servers is now set to 1930.
     19NOTE 3: The Version Number service provided by servers is now set to 1931.
     20
     2130/03/2012
     22Changes 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.
    2027
    212814/03/2012
  • trunk/FACT++/dim/dim/dim.h

    r13135 r13339  
    1414#include "dim_common.h"
    1515
    16 #define DIM_VERSION_NUMBER 1930
     16#define DIM_VERSION_NUMBER 1931
    1717
    1818#define MY_LITTLE_ENDIAN        0x1
  • trunk/FACT++/dim/src/dic.c

    r13135 r13339  
    9191{
    9292        dim_print_date_time();
    93         printf(" - Bad ID received from server -> Packet received:\n");
     93        printf("Bad ID received from server -> Packet received:\n");
    9494        printf("\tpacket->size = %d\n",vtohl(packet->size));
    9595        printf("\tpacket->service_id = %d\n",vtohl(packet->service_id));
     
    160160                        dna_get_node_task(conn_id, node, task);
    161161                        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",
    163163                                conn_id, task, node);
    164164                        fflush(stdout);
     
    362362                        dna_get_node_task(conn_id, node, task);
    363363                        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",
    365365                                conn_id, task, node);
    366366                        fflush(stdout);
     
    10291029                dic_packet->service_id = htovl(service_id);
    10301030                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 );
    10321032                release_service( servp );
    10331033                break;
     
    14421442                        {
    14431443                                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",
    14451445                                        conn_id, dic_connp->task_name, dic_connp->node_name);
    14461446                                fflush(stdout);
     
    14781478                                {
    14791479                                        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",
    14811481                                                task_name, node_name, port);
    14821482                                        fflush(stdout);
     
    18301830        dic_packet->format = htovl(MY_FORMAT);
    18311831        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        }
    18331840        return(ret);
    18341841}
  • trunk/FACT++/dim/src/dis.c

    r13135 r13339  
    15161516                                        Net_conns[conn_id].task, Net_conns[conn_id].node);
    15171517                        }
    1518                 }
    1519                 fflush(stdout);
     1518                        fflush(stdout);
     1519                }
    15201520                if(reqp->delay_delete > 1)
    15211521                {
     
    15601560        dis_packet->service_id = htovl(service_id);
    15611561        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);
    15641568                release_conn(reqp->conn_id, 0, 0);
    15651569        }
  • trunk/FACT++/dim/src/examples/test_client.c

    r12757 r13339  
    5757{
    5858        if(tag){}
    59         printf("Received VERSION %x, %d\n", (long)buf, *size);
     59        printf("Received VERSION %lx, %d\n", (long)buf, *size);
    6060}
    6161
  • trunk/FACT++/dim/src/tcpip.c

    r13135 r13339  
    6767#include <errno.h>
    6868#include <netdb.h>
     69
    6970#endif
    7071
     
    890891        int path, val, ret_code, ret;
    891892        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;
    893896        int host_number = 0;
    894897
Note: See TracChangeset for help on using the changeset viewer.