Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asapo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joao Alvim Oliveira Dias De Almeida
asapo
Commits
9a8a8657
Commit
9a8a8657
authored
7 years ago
by
Carsten Patzke
Browse files
Options
Downloads
Patches
Plain Diff
Renaming and add comments
parent
18116298
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
producer/api/include/producer/producer.h
+0
-2
0 additions, 2 deletions
producer/api/include/producer/producer.h
producer/api/src/producer_impl.cpp
+1
-6
1 addition, 6 deletions
producer/api/src/producer_impl.cpp
receiver/unittests/test_receiver.cpp
+1
-1
1 addition, 1 deletion
receiver/unittests/test_receiver.cpp
with
2 additions
and
9 deletions
producer/api/include/producer/producer.h
+
0
−
2
View file @
9a8a8657
...
...
@@ -20,9 +20,7 @@ enum class ProducerError {
enum
class
ProducerStatus
{
kDisconnected
,
kConnecting
,
kConnected
,
kSending
,
};
class
Producer
{
...
...
This diff is collapsed.
Click to expand it.
producer/api/src/producer_impl.cpp
+
1
−
6
View file @
9a8a8657
...
...
@@ -47,13 +47,10 @@ hidra2::ProducerError hidra2::ProducerImpl::initialize_socket_to_receiver_(const
}
hidra2
::
ProducerError
hidra2
::
ProducerImpl
::
ConnectToReceiver
(
const
std
::
string
&
receiver_address
)
{
if
(
client_fd_
!=
-
1
&&
status_
!=
ProducerStatus
::
kDisconnected
&&
status_
!=
ProducerStatus
::
kConnecting
)
{
if
(
client_fd_
!=
-
1
&&
status_
!=
ProducerStatus
::
kDisconnected
)
{
return
ProducerError
::
kAlreadyConnected
;
}
status_
=
ProducerStatus
::
kConnecting
;
ProducerError
error
;
error
=
initialize_socket_to_receiver_
(
receiver_address
);
if
(
error
!=
ProducerError
::
kNoError
)
{
...
...
@@ -73,8 +70,6 @@ hidra2::ProducerError hidra2::ProducerImpl::Send(uint64_t file_id, const void* d
return
ProducerError
::
kFileTooLarge
;
}
status_
=
ProducerStatus
::
kSending
;
SendDataRequest
sendDataRequest
;
sendDataRequest
.
op_code
=
kNetOpcodeSendData
;
sendDataRequest
.
request_id
=
request_id
++
;
...
...
This diff is collapsed.
Click to expand it.
receiver/unittests/test_receiver.cpp
+
1
−
1
View file @
9a8a8657
#include
<gtest/gtest.h>
#include
<gmock/gmock.h>
#include
<unittests/MockIO.h>
#include
"../src/receiver.h"
#include
"../../common/cpp/unittests/MockIO.h"
using
::
testing
::
Return
;
using
::
testing
::
_
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment