|
@@ -144,11 +144,13 @@ class ConnHandler(object):
|
|
"""
|
|
"""
|
|
self.send("Welcome client, this is the server sending!")
|
|
self.send("Welcome client, this is the server sending!")
|
|
|
|
|
|
- async def recv(self,block_size=block_size):
|
|
|
|
|
|
+ async def recv(self,block_size=None):
|
|
"""
|
|
"""
|
|
This method waits for the client to send something, decodes it and
|
|
This method waits for the client to send something, decodes it and
|
|
returns a string.
|
|
returns a string.
|
|
"""
|
|
"""
|
|
|
|
+ if block_size == None:
|
|
|
|
+ block_size = self.block_size
|
|
data_received = await self.recv(block_size=block_size)
|
|
data_received = await self.recv(block_size=block_size)
|
|
data_decoded = data_received.decode("utf-8")
|
|
data_decoded = data_received.decode("utf-8")
|
|
return data_decoded
|
|
return data_decoded
|