I use socket in non-blocking mode, Client send data continuously to Server, although I set buffer for socket is big enough to save all data from client but Ewouldblock always threw, I don't know why, could you explain to me in detail about this Ewouldblock.
EWOULDBLOCK means that the socket send buffer is full when sending, or that the socket receive buffer is empty when receiving. You are supposed to use select() to detect when these conditions become false.
EWOULDBLOCK Error in socket programming