Protocol halfway ported
This commit is contained in:
parent
6aad821279
commit
973f2fcf98
4 changed files with 66 additions and 56 deletions
|
@ -11,7 +11,7 @@ s.connect((HOST, PORT))
|
|||
|
||||
print "Saying hello to server"
|
||||
s.send(
|
||||
"Command: hello\n\
|
||||
"Server-Command: hello\n\
|
||||
Content-Type: text\n\
|
||||
Content-Length: 0\n\
|
||||
\n\
|
||||
|
@ -27,7 +27,7 @@ print "Data: ", ' '.join(data.split(" ")[1:])
|
|||
print "Defining a function called myFun"
|
||||
s.send(
|
||||
"Token: %s\n\
|
||||
Command: define\n\
|
||||
Server-Command: define\n\
|
||||
Content-Type: text\n\
|
||||
Content-Length: 42\n\
|
||||
\n\
|
||||
|
@ -42,7 +42,7 @@ print "Data: ", ' '.join(data.split(" ")[1:])
|
|||
print "Calling myFun"
|
||||
s.send(
|
||||
"Token: %s\n\
|
||||
Command: call\n\
|
||||
Server-Command: call\n\
|
||||
Content-Type: text\n\
|
||||
Content-Length: 6\n\
|
||||
\n\
|
||||
|
@ -63,7 +63,7 @@ s.connect((HOST, PORT))
|
|||
print "Calling myFun"
|
||||
s.send(
|
||||
"Token: %s\n\
|
||||
Command: call\n\
|
||||
Server-Command: call\n\
|
||||
Content-Type: text\n\
|
||||
Content-Length: 6\n\
|
||||
\n\
|
||||
|
|
Reference in a new issue