Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
bba21b46
Commit
bba21b46
authored
Sep 20, 2011
by
John Selbie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile fix and more messages for unit test
parent
1fb49dbe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
server/Makefile
server/Makefile
+1
-1
testcode/testrecvfromex.cpp
testcode/testrecvfromex.cpp
+10
-2
No files found.
server/Makefile
View file @
bba21b46
...
...
@@ -8,7 +8,7 @@ PROJECT_INTERMEDIATES := usage.txtcode usagelite.txtcode
INCLUDES
:=
$(BOOST_INCLUDE)
-I
../common
-I
../stuncore
-I
../networkutils
LIB_PATH
:=
-L
../common
-L
../stuncore
-L
../networkutils
LIBS
:=
-lnetworkutils
-lstuncore
-lcommon
-
l
pthread
-lcrypto
LIBS
:=
-lnetworkutils
-lstuncore
-lcommon
-pthread
-lcrypto
all
:
$(PROJECT_TARGET)
...
...
testcode/testrecvfromex.cpp
View file @
bba21b46
...
...
@@ -25,10 +25,18 @@
HRESULT
CTestRecvFromEx
::
Run
()
{
HRESULT
hr1
=
S_OK
,
hr2
=
S_OK
;
HRESULT
hr
=
S_OK
;
Chk
(
DoTest
(
false
));
// ipv4
Chk
(
DoTest
(
true
));
// ipv6
hr1
=
DoTest
(
false
);
// ipv4
printf
(
"Test result of recvfromex on ipv4. Result: %s
\n
"
,
SUCCEEDED
(
hr
)
?
"Pass"
:
"Fail"
);
hr2
=
DoTest
(
true
);
// ipv6
printf
(
"Test result of recvfromex on ipv6. Result: %s
\n
"
,
SUCCEEDED
(
hr
)
?
"Pass"
:
"Fail"
);
Chk
(
hr1
);
Chk
(
hr2
);
Cleanup:
return
hr
;
...
...
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