I am creating a socket with the parameters as below-
fd = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP);
But for some reason socket creation is failing and fd is set to -1.
- I wanted to understand for what and all reason can socket creation get failed?
- How do I figure out for what reason the socket creation would be failing in my case?
Note: And this is consistently reproducible, we retry the socket creation for consecutive 5 times with a gap of 500msec and it fails all the 5 times.