return theMSS;
} /* end getsock_tcp_mss */
+/* -------------------------------------------------------------------
+ * returns the DCCP maximum datagram (payload) size
+ * ------------------------------------------------------------------- */
+int getsock_dccp_mps(int inSock)
+{
+ int rc, theMPS = 0;
+ Socklen_t len = sizeof(theMPS);
+
+ assert(inSock >= 0);
+
+ rc = getsockopt(inSock, SOL_DCCP, DCCP_SOCKOPT_GET_CUR_MPS, &theMPS, &len);
+ WARN_errno(rc == SOCKET_ERROR, "getsockopt DCCP_SOCKOPT_GET_CUR_MPS");
+
+ return theMPS;
+}
+
/* -------------------------------------------------------------------
* Attempts to reads n bytes from a socket.
* Returns number actually read, or -1 on error.