projects
/
swifty.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b6c4ee
)
Remove debug prints from the RecvFrom function.
author
Adrian Bondrescu
<adi.bondrescu@gmail.com>
Fri, 1 Jun 2012 02:32:37 +0000
(
05:32
+0300)
committer
Adrian Bondrescu
<adi.bondrescu@gmail.com>
Fri, 1 Jun 2012 02:32:37 +0000
(
05:32
+0300)
src/libswift/channel.cpp
patch
|
blob
|
history
diff --git
a/src/libswift/channel.cpp
b/src/libswift/channel.cpp
index
5313095
..
ef30add
100644
(file)
--- a/
src/libswift/channel.cpp
+++ b/
src/libswift/channel.cpp
@@
-322,11
+322,7
@@
int Channel::RecvFrom (evutil_socket_t sock, Address& addr, struct evbuffer **ev
print_error("error on recv");
}
length = 0;
- printf("Received from %d addresses in one system call.\n", addr.addr->count);
for (int i=0; i<addr.addr->count; ++i) {
- struct in_addr aux;
- aux.s_addr = addr.addr->dests[i].addr;
- printf("Received from %s, %d bytes\n", inet_ntoa(aux), addr.addr->dests[i].bytes);
length += addr.addr->dests[i].bytes;
vec[i].iov_len = addr.addr->dests[i].bytes;
if (evbuffer_commit_space(evb[i], &vec[i], 1) < 0) {