Skip to content

Instantly share code, notes, and snippets.

@pipoket
Created March 24, 2017 05:14
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 pipoket/ec5286d95d2815a7e4d51da51aa244df to your computer and use it in GitHub Desktop.
Save pipoket/ec5286d95d2815a7e4d51da51aa244df to your computer and use it in GitHub Desktop.
For KAIST 2017 Spring CS341 Socket program test
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()
@pipoket
Copy link
Author

pipoket commented Mar 24, 2017

사용법

$ python test_echo.py | client -h {$host ip} -p {$port} -m {$protocol}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment