1: 2: /* 3: *temporary file implementing a setsockopt call 4: * until I find out how Maryland intends to do it. 5: */ 6: 7: #include <sys/types.h> 8: #include <stdio.h> 9: #include <sys/socket.h> 10: 11: SetSPPoptions(s,stream,eom,attn) 12: int s; /* SPP socket */ 13: u_char stream; /* datastream type */ 14: char eom; /* Boolean EOM */ 15: /* can't set ATTN -- use MSG_OOB instead */ 16: { 17: /* 18: setsockopt(s, SOL_PROTO, SPPOPT_DATASTREAMTYPE, &stream, 19: sizeof(stream)); 20: setsockopt(s, SOL_PROTO, SPPOPT_EOMBIT, &eom, sizeof(eom)); 21: */ 22: fprintf(stderr, "SetSPPoptions called , now obsoleted\n"); 23: abort(); 24: }