Commit 11f83eac authored by Davis King's avatar Davis King

Cleaned up the API a little.

parent f70ea49a
...@@ -279,8 +279,8 @@ namespace dlib ...@@ -279,8 +279,8 @@ namespace dlib
typename funct_type typename funct_type
> >
friend void bsp_connect ( friend void bsp_connect (
funct_type& funct, const std::vector<std::pair<std::string,unsigned short> >& hosts,
const std::vector<std::pair<std::string,unsigned short> >& hosts funct_type& funct
); );
template < template <
...@@ -288,9 +288,9 @@ namespace dlib ...@@ -288,9 +288,9 @@ namespace dlib
typename ARG1 typename ARG1
> >
friend void bsp_connect ( friend void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1
const std::vector<std::pair<std::string,unsigned short> >& hosts
); );
template < template <
...@@ -299,10 +299,10 @@ namespace dlib ...@@ -299,10 +299,10 @@ namespace dlib
typename ARG2 typename ARG2
> >
friend void bsp_connect ( friend void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2
const std::vector<std::pair<std::string,unsigned short> >& hosts
); );
template < template <
...@@ -312,11 +312,11 @@ namespace dlib ...@@ -312,11 +312,11 @@ namespace dlib
typename ARG3 typename ARG3
> >
friend void bsp_connect ( friend void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3
const std::vector<std::pair<std::string,unsigned short> >& hosts
); );
// ----------------------------------- // -----------------------------------
...@@ -325,8 +325,8 @@ namespace dlib ...@@ -325,8 +325,8 @@ namespace dlib
typename funct_type typename funct_type
> >
friend void bsp_listen ( friend void bsp_listen (
funct_type& funct, unsigned short listening_port,
unsigned short listening_port funct_type& funct
); );
template < template <
...@@ -334,9 +334,9 @@ namespace dlib ...@@ -334,9 +334,9 @@ namespace dlib
typename ARG1 typename ARG1
> >
friend void bsp_listen ( friend void bsp_listen (
unsigned short listening_port,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1
unsigned short listening_port
); );
template < template <
...@@ -345,10 +345,10 @@ namespace dlib ...@@ -345,10 +345,10 @@ namespace dlib
typename ARG2 typename ARG2
> >
friend void bsp_listen ( friend void bsp_listen (
unsigned short listening_port,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2
unsigned short listening_port
); );
template < template <
...@@ -358,11 +358,11 @@ namespace dlib ...@@ -358,11 +358,11 @@ namespace dlib
typename ARG3 typename ARG3
> >
friend void bsp_listen ( friend void bsp_listen (
unsigned short listening_port,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3
unsigned short listening_port
); );
// ----------------------------------- // -----------------------------------
...@@ -377,8 +377,8 @@ namespace dlib ...@@ -377,8 +377,8 @@ namespace dlib
typename funct_type typename funct_type
> >
void bsp_connect ( void bsp_connect (
funct_type& funct, const std::vector<std::pair<std::string,unsigned short> >& hosts,
const std::vector<std::pair<std::string,unsigned short> >& hosts funct_type& funct
) )
{ {
impl::map_id_to_con cons; impl::map_id_to_con cons;
...@@ -397,9 +397,9 @@ namespace dlib ...@@ -397,9 +397,9 @@ namespace dlib
typename ARG1 typename ARG1
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1
const std::vector<std::pair<std::string,unsigned short> >& hosts
) )
{ {
impl::map_id_to_con cons; impl::map_id_to_con cons;
...@@ -419,10 +419,10 @@ namespace dlib ...@@ -419,10 +419,10 @@ namespace dlib
typename ARG2 typename ARG2
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2
const std::vector<std::pair<std::string,unsigned short> >& hosts
) )
{ {
impl::map_id_to_con cons; impl::map_id_to_con cons;
...@@ -443,11 +443,11 @@ namespace dlib ...@@ -443,11 +443,11 @@ namespace dlib
typename ARG3 typename ARG3
> >
void bsp_connect ( void bsp_connect (
const std::vector<std::pair<std::string,unsigned short> >& hosts,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3
const std::vector<std::pair<std::string,unsigned short> >& hosts
) )
{ {
impl::map_id_to_con cons; impl::map_id_to_con cons;
...@@ -467,8 +467,8 @@ namespace dlib ...@@ -467,8 +467,8 @@ namespace dlib
typename funct_type typename funct_type
> >
void bsp_listen ( void bsp_listen (
funct_type& funct, unsigned short listening_port,
unsigned short listening_port funct_type& funct
) )
{ {
impl::map_id_to_con cons; impl::map_id_to_con cons;
...@@ -486,9 +486,9 @@ namespace dlib ...@@ -486,9 +486,9 @@ namespace dlib
typename ARG1 typename ARG1
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1
unsigned short listening_port
) )
{ {
impl::map_id_to_con cons; impl::map_id_to_con cons;
...@@ -507,10 +507,10 @@ namespace dlib ...@@ -507,10 +507,10 @@ namespace dlib
typename ARG2 typename ARG2
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2
unsigned short listening_port
) )
{ {
impl::map_id_to_con cons; impl::map_id_to_con cons;
...@@ -530,11 +530,11 @@ namespace dlib ...@@ -530,11 +530,11 @@ namespace dlib
typename ARG3 typename ARG3
> >
void bsp_listen ( void bsp_listen (
unsigned short listening_port,
funct_type& funct, funct_type& funct,
ARG1 arg1, ARG1 arg1,
ARG2 arg2, ARG2 arg2,
ARG3 arg3, ARG3 arg3
unsigned short listening_port
) )
{ {
impl::map_id_to_con cons; impl::map_id_to_con cons;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment