unsigned short sctp_receive(unsigned int associationID, unsigned short streamID, unsigned char *buffer, unsigned int *length)

sctp_receive is called in response to the dataArriveNotification to get the received data.

Documentation

sctp_receive is called in response to the dataArriveNotification to get the received data. The stream engine must copy the chunk data from a received SCTP datagram to a new byte string, because the SCTP datagram is overwritten when the next datagram is received and the lifetime of a chunk in the streamengine might outlast the the reception of several SCTP datagrams. For this reasons and to avoid repeated copying of byte strings, a pointer to the byte string of chunkdata allocated by the streamengine is returned. According to the standard, the chunkdata should be copied to to a buffer provided by the ULP.
Parameters:
associationID - ID of association.
streamID - the stream on which the data chunk is received.
buffer - pointer to where payload data of arrived chunk will be copied
length - length of chunk data.
Returns:
1 if association does not exist, 0 if okay

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.