Skip to content

Commit

Permalink
net: provide const versions of socket_address functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gleb-cloudius committed Mar 22, 2015
1 parent 6e049a4 commit 7f90c31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/api.hh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public:
} u;
::sockaddr& as_posix_sockaddr() { return u.sa; }
::sockaddr_in& as_posix_sockaddr_in() { return u.in; }
const ::sockaddr& as_posix_sockaddr() const { return u.sa; }
const ::sockaddr_in& as_posix_sockaddr_in() const { return u.in; }
};

struct listen_options {
Expand Down

0 comments on commit 7f90c31

Please sign in to comment.