When I listen to TCP or UDP socket with
ssize_t recv(int sockfd, void *buf, size_t len, int flags);
Or
ssize_t recvfrom(int sockfd, void *buf, size_t len, int flag , struct sockaddr *src_addr, socklen_t *addrlen);
There is argument called len
In linux ,what is the maximum buffer len that I can read with those function?is that 65336 ? Where is that defines?
What will happen if in socket there are more bytes than this number? They will dropped out? Or I will read them in the next loop?