Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Setting source port#551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Update request.hpp
  • Loading branch information
@DanielBujnik
DanielBujnik committedAug 20, 2015
commit87f6482a20d013f3d8d776dbd49dfbd483ba2663
6 changes: 3 additions & 3 deletionsboost/network/protocol/http/impl/request.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,7 +55,7 @@ template <class Tag>
struct basic_request : public basic_message<Tag> {

mutable boost::network::uri::uri uri_;
unsigned short source_port_;
boost::uint16_t source_port_;
typedef basic_message<Tag> base_type;

public:
Expand DownExpand Up@@ -113,9 +113,9 @@ struct basic_request : public basic_message<Tag> {

boost::network::uri::uri const& uri() const { return uri_; }

void source_port(constunsigned short port) { source_port_ = port; }
void source_port(constboost::uint16_t port) { source_port_ = port; }

unsigned short source_port() const { return source_port_; }
boost::uint16_t source_port() const { return source_port_; }
};

/** This is the implementation of a POD request type
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp