Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2480

Show
Ignore:
Timestamp:
08/05/07 12:03:29 (1 year ago)
Author:
kris
Message:

added explicit usage of recieved bytes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/example/networking/sockethello.d

    r2465 r2480  
    2020        // wait for response (there is an optional timeout supported) 
    2121        char[64] response; 
    22         request.input.read (response); 
     22        auto size = request.input.read (response); 
    2323 
    2424        // close socket 
     
    2626 
    2727        // display server response 
    28         Cout (response).newline; 
     28        Cout (response[0..size]).newline; 
    2929}