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
6bbb3bce
Commit
6bbb3bce
authored
Nov 25, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made test a little more robust
parent
2b7a3627
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
iosockstream.cpp
dlib/test/iosockstream.cpp
+12
-0
No files found.
dlib/test/iosockstream.cpp
View file @
6bbb3bce
...
...
@@ -97,12 +97,18 @@ namespace
void
test1
()
{
dlog
<<
LINFO
<<
"in test1()"
;
serv
theserv
;
theserv
.
set_listening_port
(
12345
);
theserv
.
start_async
();
// wait a little bit to make sure the server has started listening before we try
// to connect to it.
dlib
::
sleep
(
500
);
for
(
int
i
=
0
;
i
<
1001
;
++
i
)
{
dlog
<<
LINFO
<<
"i: "
<<
i
;
print_spinner
();
iosockstream
stream
(
"localhost:12345"
);
...
...
@@ -127,12 +133,18 @@ namespace
void
test2
()
{
dlog
<<
LINFO
<<
"in test2()"
;
serv2
theserv
;
theserv
.
set_listening_port
(
12345
);
theserv
.
start_async
();
// wait a little bit to make sure the server has started listening before we try
// to connect to it.
dlib
::
sleep
(
500
);
for
(
int
i
=
0
;
i
<
1001
;
++
i
)
{
dlog
<<
LINFO
<<
"i: "
<<
i
;
print_spinner
();
iosockstream
stream
(
"localhost:12345"
);
...
...
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