This website works better with JavaScript.
Home
Help
Sign In
pioder
/
sk-nat
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Node domyslnie tylko odbiera pakiety z kolejki (oszczednosc pamieci)
master
Piotr Dergun
7 years ago
parent
3b49766497
commit
5293c60e69
1 changed files
with
0 additions
and
9 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-9
Node.cpp
+ 0
- 9
Node.cpp
View File
@ -242,16 +242,7 @@ void Node::onRecv()
{
while
(
true
)
{
// TESTOWO
Packet
p
=
this
-
>
recv
(
)
;
if
(
p
.
getSrcPort
(
)
!
=
0
)
{
stringstream
s
;
s
<
<
"
onRecv() received
\"
"
<
<
p
.
getMsg
(
)
<
<
"
\"
from
"
<
<
p
.
getSrcIp
(
)
<
<
"
:
"
<
<
p
.
getSrcPort
(
)
;
this
-
>
print
(
s
.
str
(
)
)
;
}
sleep
(
1
)
;
}
}
Write
Preview
Loading…
Cancel
Save