repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make getpeername() return the original socket address which before it was intercepted
[hband-tools.git]
/
user-tools
/
json2msgpack
blob
c51d185f3fa3af9cb138cb0d2a873cc6d07eae4a
1
#!/usr/bin/env python
2
3
import
sys
4
import
json
5
import
msgpack
6
7
sys
.
stdout
.
write
(
msgpack
.
dumps
(
json
.
load
(
sys
.
stdin
)))