Last active
August 29, 2015 13:57
-
-
Save coder46/9657591 to your computer and use it in GitHub Desktop.
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 | |
| len1 = sys.stdin.readline() | |
| len1 = len1.split('\n')[0] | |
| len1 = int(len1) | |
| print "Len of first msg is "+ str(len1) + "\n" | |
| msg1 = sys.stdin.read(len1) | |
| print "FROM CLIENT: "+msg1 | |
| len2 = sys.stdin.readline() | |
| len2 = len2.split('\n')[0] | |
| len2 = int(len2) | |
| print "Len of second msg is "+ str(len2) + "\n" | |
| msg2 = sys.stdin.read(len2) | |
| print "FROM CLIENT: "+msg2 | |
| #for line in sys.stdin: | |
| # print "RESULT IS " + line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment