Permalink
Browse files

Work with new parameters for Socket#receive. Fixes #1

  • Loading branch information...
1 parent 20bf1fd commit 8227a333416fb7dcebddb750b913888c5e2c4ef9 @erik committed May 18, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/app.vala
View
@@ -178,12 +178,11 @@ namespace Valatra {
StringBuilder sb = new StringBuilder();
while(true) {
- StringBuilder buf = new StringBuilder.sized(100);
-
- ssize_t ret = conn.socket.receive(buf.str, 100);
+ uint8[] buf = new uint8[100];
+ ssize_t ret = conn.socket.receive(buf);
if(ret > 0) {
- sb.append(buf.str[0 : ret]);
+ sb.append((string)buf);
}
if(ret < 100) {

0 comments on commit 8227a33

Please sign in to comment.