Skip to content

why socket_t::send accepts a ref of message_t, but recv accepts pointer? #69

Open
@derekxgl

Description

@derekxgl

socket_t's send and recv signatures are as below. Why send accepts ref, but recv only accepts pointer? also shouldn't send accept const ref instead of ref?

inline bool send (message_t &msg_, int flags_ = 0)
inline bool recv (message_t *msg_, int flags_ = 0)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions