Hello group,
Recently i pached JVM source code in order to add support for SCTP to Mac OSX operating systems and this effort succeed.
All thinks worked find but i have to patch org.mobicents.protocols.sctp.AssociationImpl (sctp protocol package) file as follows:
public AssociationImpl(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName,
IpChannelType ipChannelType, String[] extraHostAddresses) throws IOException {
this();
this.hostAddress = hostAddress;
this.hostPort = hostPort;
this.peerAddress = peerAddress;
this.peerPort = peerPort;
this.name = assocName;
this.ipChannelType = ipChannelType;
this.extraHostAddresses = extraHostAddresses;
// This never initialised, why ?
this.peerSocketAddress = new InetSocketAddress(peerAddress, peerPort);
this.type = AssociationType.CLIENT;
}
Is there any special reason why this.peerSocketAddress isnt initialised anywhere? Having this value as null caused problematic MessageInfo, as a result the native stack returned "Invalid Value" exceptions. With this simple patch, SCTP is working fine even in OSX.
Im asking just to verify if i misunderstood something or not regarding this.peerSocketAddress param.
Greetings