int sd, sock, type, len=sizeof(type);
sock = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP);
sctp_connectx(sock, ...);
sd = sctp_peeloff(sock, id);
getsockopt(sd, SOL_SOCKET, SO_TYPE, &type, &len);
type is SOCK_SEQPACKET, not SOCK_STREAM as expected
Regards,
Yves.
int sd, sock, type, len=sizeof(type);
sock = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP);
sctp_connectx(sock, ...);
sd = sctp_peeloff(sock, id);
getsockopt(sd, SOL_SOCKET, SO_TYPE, &type, &len);
type is SOCK_SEQPACKET, not SOCK_STREAM as expected
Regards,
Yves.