Read problem with epoll?

Well, though it's unlikely, it is possible that your 170-byte client send could arrive at your server and be presented as 170 read() returns with a str_len of 1. That's just how TCP is - it streams bytes. If you have to concatenate bytes into some sort of protocol-unit, then you will have to explicitly do this in your code.

The best way for your app depends on the protocol and how you handle the protocol-units. That's very app-dependent. If, for example, you protocol is CRLF-delimited text, you could copy each received byte into some buffer class until the delimiter is found, then pushwork(currentBufferInstance).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions