Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
GIO.Socket.Receive not filling string buffer #178
When using the GIO.Socket.Receive method to receive data from my server, the data does not fill the string buffer I have set up. E.g.
string buffer = new string(512); auto recv = client.receive(buffer, null); writefln("Received %d bytes as: %s", recv, buffer);
The print out says I receive the correct amount of bytes but just prints out 512 bytes of emptiness...
Is this a bug in the Socket.receive method or am I missing something here?