X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.c;h=49026db0ec91a7b4a1d3d0917723720eb8d0ba30;hp=ae596e5a7007260dd3a2954932f3927e88ea3bdd;hb=1b5c824581612cf5bf6c34f7f4472ed7a2eedbdd;hpb=85c2ed9bb21a7576e10c63c0273ff1ecc5e45b9b diff --git a/net.c b/net.c index ae596e5a..49026db0 100644 --- a/net.c +++ b/net.c @@ -576,8 +576,14 @@ static inline int estimated_header_overhead(const int af_type) } /** - * Maximum transport-layer message size (MMS_S) as per RFC 1122, 3.3.3 - * Socket must be connected. + * Get the maximum transport-layer message size (MMS_S). + * + * \param sockfd The socket file descriptor. + * + * The socket must be connected. See RFC 1122, 3.3.3. If the protocol familiy + * could not be determined, \p AF_INET is assumed. + * + * \return The maximum message size of the address family type. */ int generic_max_transport_msg_size(int sockfd) {