data is the raw data received from the socket. If the data sent by the IRC server does not fit in the buffer only a partial message will be received. Furthermore there is no guarantee that the data received from the socket contains a single message. That is why the process_data function is used.
data
is the raw data received from the socket. If the data sent by the IRC server does not fit in the buffer only a partial message will be received. Furthermore there is no guarantee that the data received from the socket contains a single message. That is why theprocess_data
function is used.