Created
March 24, 2017 05:14
-
-
Save pipoket/ec5286d95d2815a7e4d51da51aa244df to your computer and use it in GitHub Desktop.
For KAIST 2017 Spring CS341 Socket program test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
DATA = b"\x01\x01\x01\x01\x02\x02\x02\x02\x02\x02\x03\x03\x04\x02\x01\x09\x09\\0" | |
sys.stdout.write(DATA) | |
sys.stdout.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
사용법
$ python test_echo.py | client -h {$host ip} -p {$port} -m {$protocol}