Changeset 2480
- Timestamp:
- 08/05/07 12:03:29 (1 year ago)
- Files:
-
- trunk/example/networking/sockethello.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/example/networking/sockethello.d
r2465 r2480 20 20 // wait for response (there is an optional timeout supported) 21 21 char[64] response; 22 request.input.read (response);22 auto size = request.input.read (response); 23 23 24 24 // close socket … … 26 26 27 27 // display server response 28 Cout (response ).newline;28 Cout (response[0..size]).newline; 29 29 }












