Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
7377c385
Commit
7377c385
authored
Feb 04, 2013
by
Michal 'vorner' Vaner
Browse files
[1924] Use the constants in default parameters too
parent
8adef649
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/cc/session.cc
View file @
7377c385
...
...
@@ -33,8 +33,6 @@
#include <cc/data.h>
#include <cc/session.h>
#include <util/common_defs.h>
#include <cstdio>
#include <vector>
#include <iostream>
...
...
src/lib/cc/session.h
View file @
7377c385
...
...
@@ -15,14 +15,16 @@
#ifndef ISC_SESSION_H
#define ISC_SESSION_H 1
#include <string>
#include <cc/data.h>
#include <cc/session_config.h>
#include <
boost/function.hpp
>
#include <
util/common_defs.h
>
#include <exceptions/exceptions.h>
#include <cc/data.h>
#include <cc/session_config.h>
#include <string>
#include <boost/function.hpp>
namespace
asio
{
class
io_service
;
...
...
@@ -81,8 +83,10 @@ namespace isc {
virtual
void
disconnect
()
=
0
;
virtual
int
group_sendmsg
(
isc
::
data
::
ConstElementPtr
msg
,
std
::
string
group
,
std
::
string
instance
=
"*"
,
std
::
string
to
=
"*"
,
std
::
string
instance
=
isc
::
util
::
CC_INSTANCE_WILDCARD
,
std
::
string
to
=
isc
::
util
::
CC_TO_WILDCARD
,
bool
want_answer
=
false
)
=
0
;
virtual
bool
group_recvmsg
(
isc
::
data
::
ConstElementPtr
&
envelope
,
isc
::
data
::
ConstElementPtr
&
msg
,
...
...
src/lib/python/isc/cc/session.py
View file @
7377c385
...
...
@@ -257,8 +257,8 @@ class Session:
"instance"
:
instance
,
})
def
group_sendmsg
(
self
,
msg
,
group
,
instance
=
"*"
,
to
=
"*"
,
want_answer
=
False
):
def
group_sendmsg
(
self
,
msg
,
group
,
instance
=
CC_INSTANCE_WILDCARD
,
to
=
CC_TO_WILDCARD
,
want_answer
=
False
):
seq
=
self
.
_next_sequence
()
self
.
sendmsg
({
CC_HEADER_TYPE
:
CC_COMMAND_SEND
,
...
...
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