following adjustment

This commit is contained in:
2019-12-15 11:34:39 +08:00
parent 87081c9149
commit dfd5369114
2 changed files with 18 additions and 0 deletions

View File

@@ -41,3 +41,6 @@ class Datapack:
print("Error: length is larger than the body")
raise IOError
def is_complete(self):
pass # here needs to add more function

15
test_file.py Normal file
View File

@@ -0,0 +1,15 @@
import socket
data = '''post log msw/1.0
from: network
hello, network!'''
data = data.encode()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 3900))
s.sendall(data)
print(data)
s.close()