TCP infrastructure rewrite
Status: Pre-Alpha
Brought to you by:
hytparadisee
The current TCP implementation is not appropriate. It should be stream based. The current implementation does not take into consideration the fact that more than one TCP messages may be concatenated and flushed together when sending. The new implementation should be able to split them.
Logged In: YES
user_id=1505745
Originator: YES
Now the current TCP implementation appends the length of the message to the beginning of the message body. The receiver will be able to extract these concatenated messages one by one.
There is still no implementation done for the case when the message is split into two flush. (i.e. the first half is in the end of the first flush and the second half is in the beginning of the second flush). Thus in the future we need a NEED_DATA implementation, but it's delayed.