MCPcopy Create free account
hub / github.com/boostorg/asio / change

Method change

example/cpp11/porthopper/protocol.hpp:47–51  ·  view source on GitHub ↗

Create a request to change the port that data is sent to.

Source from the content-addressed store, hash-verified

45
46 // Create a request to change the port that data is sent to.
47 static const control_request change(
48 unsigned short old_port, unsigned short new_port)
49 {
50 return control_request(old_port, new_port);
51 }
52
53 // Get the old port. Returns 0 for start requests.
54 unsigned short old_port() const

Callers

nothing calls this directly

Calls 1

control_requestClass · 0.85

Tested by

no test coverage detected