I've recently been using and learning twisted for creating TCP client socket.
I got that dataRecived
method of Protocol
class, returns all data together. It means all data ConCat with each other and finally it returns a long byte data from server.
Code:
from twisted.internet.protocol import Protocol
class ClientProtocol(Protocol):
def connectionMade(self):
self.transport.write(b'a')
def dataReceived(self, data):
print ('data', data)
So now my questions are:
Has
dataRecived
method any maximum size for data? Or it's size is unlimited?If it has maximum size, what is that? And how can i override that?
Note: I'm using Ubuntu 14.04, Python v3.4 and Twisted v15.3.0.