Toggle navigation
Toggle navigation
This project
Loading...
Sign in
arcs
/
ARCS2-Components
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Yves Didier
2013-08-29 17:15:24 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
02bb4295a59f0ef59e2691587f055758666b4e9a
02bb4295
1 parent
94d22baf
maj module
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
2 deletions
network/arcsnetworkframes.cpp
network/arcsnetworkframes.h
network/arcsnetworkserver.cpp
network/arcsnetworkframes.cpp
View file @
02bb429
...
...
@@ -4,6 +4,36 @@
#include <iostream>
namespace
ARCS
{
namespace
Network
{
QHash
<
int
,
QString
>
initErrors
();
}
}
QHash
<
int
,
QString
>
ARCS
::
Network
::
initErrors
()
{
QHash
<
int
,
QString
>
res
;
///////////////////////////////////////////////////////////////////////////
// errors on client side
res
[
400
]
=
"CALL_REQUEST: id named '%a' not found"
;
res
[
401
]
=
"CALL_REQUEST: wrong port number '%a'"
;
res
[
404
]
=
"CALL_REQUEST: signal named '%a' not found"
;
res
[
413
]
=
"CONNECT_REQUEST: wrong destination '%a'"
;
res
[
414
]
=
"CONNECT_REQUEST: wrong port number '%a'"
;
res
[
415
]
=
"CONNECT_REQUEST: wrong slot name '%a'"
;
res
[
424
]
=
"DISCONNECT_REQUEST: wrong source name '%a'"
;
res
[
435
]
=
"SLOT_REQUEST: wrong slot name '%a'"
;
return
res
;
}
const
QHash
<
int
,
QString
>
ARCS
::
Network
::
errors
=
ARCS
::
Network
::
initErrors
();
int
ARCSNetworkFrame
::
TimeOut
=
-
1
;
// 5000;
...
...
network/arcsnetworkframes.h
View file @
02bb429
...
...
@@ -4,6 +4,14 @@
#include <QByteArray>
#include <QStringList>
#include <QDataStream>
#include <QHash>
namespace
ARCS
{
namespace
Network
{
extern
const
QHash
<
int
,
QString
>
errors
;
}
}
//! Base class for data in network frames.
/*! It describes serialization/deserialization methods for data frames.
...
...
network/arcsnetworkserver.cpp
View file @
02bb429
...
...
@@ -398,8 +398,6 @@ ARCSNetworkServer* ARCSNetworkServer::getInstance()
return
instance
;
}
// import� de ARCSNetworkStub
void
ARCSNetworkServer
::
getProxySlot
(
QString
slot
,
ObjectList
&
obj
,
QStringList
&
proxySlot
)
{
QList
<
ARCSNetworkProxySlot
*>
anps
;
...
...
Please
register
or
login
to post a comment