[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MSG_EOF missing in <sys/socket.h>




I am porting some ttcp code (transactions for TCP) from FreeBSD to OPENbsd
2.8.

socket.h (partial printout) looks like this on FreeBSD 4.1:

#define MSG_OOB         0x1             /* process out-of-band data */
#define MSG_PEEK        0x2             /* peek at incoming message */
#define MSG_DONTROUTE   0x4             /* send without using routing tables
*/
#define MSG_EOR         0x8             /* data completes record */
#define MSG_TRUNC       0x10            /* data discarded before delivery */
#define MSG_CTRUNC      0x20            /* control data lost before delivery
*/
#define MSG_WAITALL     0x40            /* wait for full request or error */
#define MSG_DONTWAIT    0x80            /* this message should be
nonblocking */
#define MSG_EOF         0x100           /* data completes connection */
#define MSG_COMPAT      0x8000          /* used in sendit() */

socket.h on OPENbsd 2.8 looks like this:

#define MSG_OOB         0x1             /* process out-of-band data */
#define MSG_PEEK        0x2             /* peek at incoming message */
#define MSG_DONTROUTE   0x4             /* send without using routing tables
*/
#define MSG_EOR         0x8             /* data completes record */
#define MSG_TRUNC       0x10            /* data discarded before delivery */
#define MSG_CTRUNC      0x20            /* control data lost before delivery
*/
#define MSG_WAITALL     0x40            /* wait for full request or error */
#define MSG_DONTWAIT    0x80            /* this message should be
nonblocking */
#define MSG_BCAST       0x100           /* this message rec'd as broadcast
*/
#define MSG_MCAST       0x200           /* this message rec'd as multicast
*/

What I infer from from this is that OPENbsd 2.8 has no support for TTCP. Am
I correct or is there another way around this problem ?

Peter.