Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
b332e0b7
Commit
b332e0b7
authored
Aug 30, 2018
by
wangyao02
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- rename get_sock_opt to GetSockOption
parent
f6e82dc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
controller.cpp
src/brpc/controller.cpp
+1
-1
controller.h
src/brpc/controller.h
+1
-1
No files found.
src/brpc/controller.cpp
View file @
b332e0b7
...
...
@@ -1382,7 +1382,7 @@ x509_st* Controller::get_peer_certificate() const {
return
s
?
s
->
GetPeerCertificate
()
:
NULL
;
}
int
Controller
::
get_sock_opt
(
int
level
,
int
optname
,
void
*
optval
,
socklen_t
*
optlen
)
{
int
Controller
::
GetSockOption
(
int
level
,
int
optname
,
void
*
optval
,
socklen_t
*
optlen
)
{
Socket
*
s
=
_current_call
.
sending_sock
.
get
();
if
(
s
)
{
return
getsockopt
(
s
->
fd
(),
level
,
optname
,
optval
,
optlen
);
...
...
src/brpc/controller.h
View file @
b332e0b7
...
...
@@ -593,7 +593,7 @@ private:
bool
is_used_by_rpc
()
const
{
return
has_flag
(
FLAGS_USED_BY_RPC
);
}
// Get sock option. .e.g get vip info through ttm kernel module hook,
int
get_sock_opt
(
int
level
,
int
optname
,
void
*
optval
,
socklen_t
*
optlen
);
int
GetSockOption
(
int
level
,
int
optname
,
void
*
optval
,
socklen_t
*
optlen
);
private
:
// NOTE: align and group fields to make Controller as compact as possible.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment