Skip to content

GIO.Socket.Receive not filling string buffer #178

@Tyrannican

Description

@Tyrannican

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions