|
From: Mark D. <x2...@si...> - 2011-12-18 03:32:51
|
I'm curious as to why the docs constain st_sendmsg() and st_recvmsg() to UDP? To quote from http://state-threads.sourceforge.net/docs/reference.html#sendmsg "A file descriptor object identifier (see st_netfd_t) representing a UDP socket" But I don't see anything in the st code that requires this constraint, furthermore I've long used st_sendmsg() and st_recvmsg() on TCP sockets as it's the only way to do an inter-process fdpass with this sort of code: control->cmsg_level = SOL_SOCKET; control->cmsg_type = SCM_RIGHTS; My guess is that it's just an historical accident in the docs that might have been cloned from st_sendto()/st_recvfrom() function - which are constrained to UDP. Mark. |