SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] SCTP data types


Chronological Thread 
  • From: Thomas Dreibholz <dreibh AT iem.uni-due.de>
  • To: sctp-discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] SCTP data types
  • Date: Mon, 8 Sep 2008 09:40:23 +0200
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>
  • Organization: University of Duisburg-Essen, Institute for Experimental Mathematics

On Montag, 8. September 2008,
mrader AT comcast.net
wrote:
> Hello
>
> I have been playing around since my newbe question and need to find out how
> one can pass a binary (void *) datagram. Right now SCTP_receive seems to
> only return a char *.

int sctp_receive(unsigned int associationID, unsigned short streamID,
unsigned
char *buffer,
unsigned int *length, unsigned short *streamSN, unsigned int
* tsn, unsigned int flags);


I assume you want this:

void* datagram;
...
result = sctp_receive(assocID, streamID, (unsigned char*)buffer, ...).


Best regards
--
=======================================================================
Dr. Thomas Dreibholz

University of Duisburg-Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
-----------------------------------------------------------------------
E-Mail:
dreibh AT iem.uni-due.de
Homepage: http://www.iem.uni-due.de/~dreibh
=======================================================================

Attachment: signature.asc
Description: This is a digitally signed message part.




Archive powered by MHonArc 2.6.19+.

Top of page