Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
4ee88457
Commit
4ee88457
authored
Apr 29, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed namespace lookup problem due to a name clash.
parent
893824a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
bridge.h
dlib/bridge/bridge.h
+10
-10
No files found.
dlib/bridge/bridge.h
View file @
4ee88457
...
@@ -141,7 +141,7 @@ namespace dlib
...
@@ -141,7 +141,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
namespace
impl
namespace
impl
_brns
{
{
class
impl_bridge_base
class
impl_bridge_base
{
{
...
@@ -594,26 +594,26 @@ namespace dlib
...
@@ -594,26 +594,26 @@ namespace dlib
listen_on_port
network_parameters
,
listen_on_port
network_parameters
,
bridge_transmit_decoration
<
T
>
transmit_pipe
,
bridge_transmit_decoration
<
T
>
transmit_pipe
,
bridge_receive_decoration
<
R
>
receive_pipe
bridge_receive_decoration
<
R
>
receive_pipe
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
::
impl_bridge
<
T
,
R
>
(
network_parameters
.
port
,
&
transmit_pipe
.
p
,
&
receive_pipe
.
p
));
}
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
_brns
::
impl_bridge
<
T
,
R
>
(
network_parameters
.
port
,
&
transmit_pipe
.
p
,
&
receive_pipe
.
p
));
}
template
<
typename
T
,
typename
R
>
template
<
typename
T
,
typename
R
>
void
reconfigure
(
void
reconfigure
(
listen_on_port
network_parameters
,
listen_on_port
network_parameters
,
bridge_receive_decoration
<
R
>
receive_pipe
,
bridge_receive_decoration
<
R
>
receive_pipe
,
bridge_transmit_decoration
<
T
>
transmit_pipe
bridge_transmit_decoration
<
T
>
transmit_pipe
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
::
impl_bridge
<
T
,
R
>
(
network_parameters
.
port
,
&
transmit_pipe
.
p
,
&
receive_pipe
.
p
));
}
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
_brns
::
impl_bridge
<
T
,
R
>
(
network_parameters
.
port
,
&
transmit_pipe
.
p
,
&
receive_pipe
.
p
));
}
template
<
typename
T
>
template
<
typename
T
>
void
reconfigure
(
void
reconfigure
(
listen_on_port
network_parameters
,
listen_on_port
network_parameters
,
bridge_transmit_decoration
<
T
>
transmit_pipe
bridge_transmit_decoration
<
T
>
transmit_pipe
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
::
impl_bridge
<
T
,
T
>
(
network_parameters
.
port
,
&
transmit_pipe
.
p
,
0
));
}
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
_brns
::
impl_bridge
<
T
,
T
>
(
network_parameters
.
port
,
&
transmit_pipe
.
p
,
0
));
}
template
<
typename
R
>
template
<
typename
R
>
void
reconfigure
(
void
reconfigure
(
listen_on_port
network_parameters
,
listen_on_port
network_parameters
,
bridge_receive_decoration
<
R
>
receive_pipe
bridge_receive_decoration
<
R
>
receive_pipe
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
::
impl_bridge
<
R
,
R
>
(
network_parameters
.
port
,
0
,
&
receive_pipe
.
p
));
}
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
_brns
::
impl_bridge
<
R
,
R
>
(
network_parameters
.
port
,
0
,
&
receive_pipe
.
p
));
}
...
@@ -623,26 +623,26 @@ namespace dlib
...
@@ -623,26 +623,26 @@ namespace dlib
connect_to_ip_and_port
network_parameters
,
connect_to_ip_and_port
network_parameters
,
bridge_transmit_decoration
<
T
>
transmit_pipe
,
bridge_transmit_decoration
<
T
>
transmit_pipe
,
bridge_receive_decoration
<
R
>
receive_pipe
bridge_receive_decoration
<
R
>
receive_pipe
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
::
impl_bridge
<
T
,
R
>
(
network_parameters
.
ip
,
network_parameters
.
port
,
&
transmit_pipe
.
p
,
&
receive_pipe
.
p
));
}
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
_brns
::
impl_bridge
<
T
,
R
>
(
network_parameters
.
ip
,
network_parameters
.
port
,
&
transmit_pipe
.
p
,
&
receive_pipe
.
p
));
}
template
<
typename
T
,
typename
R
>
template
<
typename
T
,
typename
R
>
void
reconfigure
(
void
reconfigure
(
connect_to_ip_and_port
network_parameters
,
connect_to_ip_and_port
network_parameters
,
bridge_receive_decoration
<
R
>
receive_pipe
,
bridge_receive_decoration
<
R
>
receive_pipe
,
bridge_transmit_decoration
<
T
>
transmit_pipe
bridge_transmit_decoration
<
T
>
transmit_pipe
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
::
impl_bridge
<
T
,
R
>
(
network_parameters
.
ip
,
network_parameters
.
port
,
&
transmit_pipe
.
p
,
&
receive_pipe
.
p
));
}
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
_brns
::
impl_bridge
<
T
,
R
>
(
network_parameters
.
ip
,
network_parameters
.
port
,
&
transmit_pipe
.
p
,
&
receive_pipe
.
p
));
}
template
<
typename
R
>
template
<
typename
R
>
void
reconfigure
(
void
reconfigure
(
connect_to_ip_and_port
network_parameters
,
connect_to_ip_and_port
network_parameters
,
bridge_receive_decoration
<
R
>
receive_pipe
bridge_receive_decoration
<
R
>
receive_pipe
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
::
impl_bridge
<
R
,
R
>
(
network_parameters
.
ip
,
network_parameters
.
port
,
0
,
&
receive_pipe
.
p
));
}
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
_brns
::
impl_bridge
<
R
,
R
>
(
network_parameters
.
ip
,
network_parameters
.
port
,
0
,
&
receive_pipe
.
p
));
}
template
<
typename
T
>
template
<
typename
T
>
void
reconfigure
(
void
reconfigure
(
connect_to_ip_and_port
network_parameters
,
connect_to_ip_and_port
network_parameters
,
bridge_transmit_decoration
<
T
>
transmit_pipe
bridge_transmit_decoration
<
T
>
transmit_pipe
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
::
impl_bridge
<
T
,
T
>
(
network_parameters
.
ip
,
network_parameters
.
port
,
&
transmit_pipe
.
p
,
0
));
}
)
{
pimpl
.
reset
();
pimpl
.
reset
(
new
impl
_brns
::
impl_bridge
<
T
,
T
>
(
network_parameters
.
ip
,
network_parameters
.
port
,
&
transmit_pipe
.
p
,
0
));
}
bridge_status
get_bridge_status
(
bridge_status
get_bridge_status
(
...
@@ -656,7 +656,7 @@ namespace dlib
...
@@ -656,7 +656,7 @@ namespace dlib
private
:
private
:
scoped_ptr
<
impl
::
impl_bridge_base
>
pimpl
;
scoped_ptr
<
impl
_brns
::
impl_bridge_base
>
pimpl
;
};
};
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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