sctp

sctp_bindx (Solaris sctp library) always return “Invalid argument”

纵饮孤独 提交于 2020-01-25 12:37:07
问题 I am writing a SCTP test program in Solaris OS, and use Solaris native SCTP stack. The program likes this: if ((fd = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP)) < 0) { perror("socket"); } addr.sin_family = AF_INET; addr.sin_port = htons(9004); addr.sin_addr.s_addr = inet_addr("192.168.23.117"); if (sctp_bindx(fd, (struct sockaddr*)&addr, sizeof(struct sockaddr_in), SCTP_BINDX_ADD_ADDR) < 0) { perror("bind"); } When running the program, it always return error:"Invalid argument". I have used

SCTP receive message function returning zero

自古美人都是妖i 提交于 2020-01-03 03:44:06
问题 The client program i have written uses SCTP sockets for communication. I am using sctp_recvmsg to read the data available for a particular user from socket. I have noticed that at times sctp_recvmsg returns 0 value instead of number of bytes read or -1 indicating an error. I have checked my code and the socket from which data is being read is not closed. Can someone throw light on how can such a behavior be seen? Thanks in Advance. Regards, Sujay 回答1: According to this lksctp thread, sctp

SCTP and webrtc

核能气质少年 提交于 2019-12-18 16:09:32
问题 I saw that SCTP is going to be used for Data Channels starting in Chrome 31, and officially RTP based channels are going to be deprecated sometimes in February 2014 according to this google group thread: https://groups.google.com/forum/#!topic/discuss-webrtc/y2A97iCByTU Does this also mean that webrtc audio and video channels are also going to be transported over SCTP eventually(if not already in the works)? How does RTP fit in the whole SCTP transport effort? Does that mean SRTP packets will

SCTP Multihoming

冷暖自知 提交于 2019-12-18 10:17:10
问题 I've been developing this simple client - server application with C where the client is just sending random data to the server and the server just listens to what the client sends. The protocol I'm using is SCTP and I'm interested on how to implement the multihoming feature to it. I've been searching through the internet about SCTP and multihoming and haven't been able to find any examples about how to instruct SCTP to use multiple addresses for communication. I've only managed to find what

SCTP: any cross-platform library?

点点圈 提交于 2019-12-13 12:25:08
问题 I'm investigating SCTP protocol. Its features look attractive. What I worry is its support from community. Is there any good cross-platform (at least Linux and Windows) C++ (or at least C) SCTP library? Does it support async methods? 回答1: Not sure how well tested/working this is (never got to use it myself), but I looked at http://code.halssoftware.com/index.php/p/boostasiosctp/source/tree/master/boost a while ago. Let me know if that does anything for you. 回答2: Update: A cross platform

Does SCTP works as advertised using Linux?

人盡茶涼 提交于 2019-12-12 12:08:17
问题 I am planning to use SCTP for a embedded Linux project. Anybody has some comments on SCTP usage, mostly in one-to-many mode? Did it beat using a home-made UDP-based equivalent solution? I control the network environement and all devices involved, so compatibility is not an issue. 回答1: I have made extensive use of lksctp and have found it to be robust and interoperable with many other implementations of sctp. The standard for the sockets API for SCTP is still evolving but is quite mature and I

SCTP association

谁说胖子不能爱 提交于 2019-12-11 20:22:01
问题 I'm trying to build an SS7 network entity that uses sctp, my question is how should I design the routing table used to route to each association in both route on GT or route on PC. So for example let's say that this entity is connected to 2 STPs, 2 associations to each STP node1 (thread 1) ----association 1---->STP1 node1 (thread 2) ----association 2---->STP1 node1 (thread 3) ----association 1---->STP2 node1 (thread 4) ----association 2---->STP2 As shown above each thread has one association,

Restcomm jDiameter: Error creating SCTP socket

狂风中的少年 提交于 2019-12-11 12:52:51
问题 I am trying to create a standalone SCTP diameter client using Jdiameter. The jar libraries I am using are jdiameter-api-1.5.9.0-build538-SNAPSHOT and jdiameter-impl-1.5.9.0-build538-SNAPSHOT But I get this error Unable to create server socket for LocalPeer 'client.test.com' at 127.0.0.1:55555 (org.mobicents.protocols.api.AssociationListener) It works fine with TCP. I tried to debug but couldn't figure out the problem. Kindly help me with this. 回答1: SCTP will not work on windows systems. For

getsockopt “Invalid argument” for IPPROTO_SCTP, SCTP_STATUS

匆匆过客 提交于 2019-12-11 11:05:30
问题 Scenario: I've created SCTP one-to-many socket (functions that starts with big letter call corresponding standard functions with check for error and print errno to stderr) int sock_fd,msg_flags; char readbuf[BUFFSIZE]; struct sockaddr_in servaddr, cliaddr; struct sctp_sndrcvinfo sri; struct sctp_event_subscribe evnts; int stream_increment=1; socklen_t len; size_t rd_sz; sock_fd = Socket( AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); bzero( &servaddr, sizeof( servaddr)); servaddr.sin_family = AF

C++ usrsctp callback parameters null

大兔子大兔子 提交于 2019-12-11 02:54:57
问题 I'm currently creating a network application that uses the usrsctp library on windows and I'm having an odd problem with parameters appearing as null when they shouldn't be on a callback function. I'm not sure if this is a specific usrsctp issue or something I'm doing wrong so I wanted to check here first. When creating a new sctp socket you pass a function as one of the parameters that you want to be called when data is received as shown in the code below static int receive_cb(struct socket