Changeset 9867

Show
Ignore:
Timestamp:
02/01/10 09:49:22 (3 years ago)
Author:
jgaeddert
Message:

cleaning up packet source/sink

Location:
ossiedev/branches/jgaeddert/0.8.0/components
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jgaeddert/0.8.0/components/PacketSink/PacketSink.cpp

    r9866 r9867  
    170170 
    171171        if (verbose) { 
    172             printf("PacketSink received packet : [id:%4u] %4u bytes\n", 
     172            printf("PacketSink received packet [%4u] %4u bytes\n", 
    173173                    packet_id, 
    174174                    payloadDataLength); 
  • ossiedev/branches/jgaeddert/0.8.0/components/PacketSource/PacketSource.cpp

    r9865 r9867  
    193193 
    194194        if (verbose) { 
    195             std::cout << "  PacketSource generating packet " << packet_id << std::endl; 
     195            printf("PacketSource generating packet [%4u] %4u bytes\n", 
     196                    packet_id, 
     197                    64); 
    196198        } 
    197199 
     
    200202 
    201203        packet_id++; 
     204        packet_id &= 0xff; // for now strip id to only last 8 bits 
     205 
     206        // wait some time between each packet 
     207        // TODO : make configurable property 
     208        usleep(1000000); 
    202209    } 
    203210}