Skip to content

Instantly share code, notes, and snippets.

@ronin13
Created May 27, 2015 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronin13/a70ae694dd5b5f32c515 to your computer and use it in GitHub Desktop.
Save ronin13/a70ae694dd5b5f32c515 to your computer and use it in GitHub Desktop.
socat
strace -f -e trace=network ./socat -u TCP-LISTEN:41445,fork,reuseport stdio
socketpair(PF_LOCAL, SOCK_DGRAM, 0, [3, 4]) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
recvfrom(3, 0x3fc72724000, 519, 64, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(3, 0x3fc72724000, 519, 64, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
setsockopt(5, SOL_SOCKET, SO_REUSEPORT, [1], 4) = 0
bind(5, {sa_family=AF_INET, sin_port=htons(41445), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(5, {sa_family=AF_INET, sin_port=htons(41445), sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
listen(5, 5) = 0
recvfrom(3, 0x3fc72723e60, 519, 64, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(3, 0x3fc72723c40, 519, 64, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment