Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MP3
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
ajf5
MP3
Commits
171f91bb
Commit
171f91bb
authored
4 years ago
by
ajf5
Browse files
Options
Downloads
Patches
Plain Diff
logging
parent
afa178a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Wc
+0
-0
0 additions, 0 deletions
Wc
src/TcpSocket.cpp
+1
-3
1 addition, 3 deletions
src/TcpSocket.cpp
with
1 addition
and
3 deletions
Wc
+
0
−
0
View file @
171f91bb
No preview for this file type
This diff is collapsed.
Click to expand it.
src/TcpSocket.cpp
+
1
−
3
View file @
171f91bb
...
...
@@ -133,7 +133,7 @@ void TcpSocket::sendFile(string ip, string port,
void
TcpSocket
::
sendLines
(
string
ip
,
string
port
,
string
execfile
,
string
readfile
,
string
prefix
,
int
start
,
int
end
)
{
int
sockfd
=
0
,
lineCounter
=
-
1
;
numbytes
=
0
;
int
sockfd
=
0
,
lineCounter
=
-
1
,
numbytes
=
0
;
if
((
sockfd
=
createConnection
(
ip
,
port
))
==
-
1
)
return
;
//exec, read, start, tmp, prefix
vector
<
string
>
unDirectory
=
splitString
(
readfile
,
"-"
);
...
...
@@ -156,8 +156,6 @@ void TcpSocket::sendLines(string ip, string port, string execfile, string readfi
perror
(
"send"
);
}
sleep
(
1
);
ifstream
file
(
getMostRecentFile
(
readfile
).
c_str
());
string
str
;
while
(
getline
(
file
,
str
))
{
lineCounter
++
;
...
...
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