Skip to content

Representing Network Messages #11

Description

@AGFeldman

We use std::string to hold network messages, but students need to access to the underlying character array and cast pointers in order to do anything. The only benefit to using an std::string is in memory management. Is there a better way to do this?

Here is a function header for reference:

std::string EncodeNetworkMessage(MESSAGE_TYPE type, std::string * payload)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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