SCTP Discussions

Text archives Help


[SCTP-Discussion] question about SCTP programming


Chronological Thread 
  • From: Tetu Ou <hu-outetu AT hiroshima-u.ac.jp>
  • To: sctp-discussion AT sctp.de
  • Subject: [SCTP-Discussion] question about SCTP programming
  • Date: Mon, 02 Sep 2013 23:42:25 +0900
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

Hello,

I am a new member of this mailing list,and i have a question about SCTP
programming on FreeBSD.
When I compiling my SCTP server/client(send/receive) program,I found an
error like this:
error:
client.c: SOL_SCTP undeclared(first use in this function)...

But on Linux,it was OK.

The part of my source code( CreateSocket() ):
/* Enable receipt of SCTP Snd/Rcv Data via sctp_recvmsg */
memset( (void *)&events, 0, sizeof(events) );
events.sctp_data_io_event = 1;
ret = setsockopt( connSock, SOL_SCTP, SCTP_EVENTS,
(const void *)&events, sizeof(events) );

/* Read and emit the status of the Socket (optional step) */
in = sizeof(status);
ret = getsockopt( connSock, SOL_SCTP, SCTP_STATUS,
(void *)&status, (socklen_t *)&in );

I am sorry for my poor english,and I was wondering if it be possible to
ask somebody who can help me.

Thank you.
Best Regards.

--
Zhe Wang
Hiroshima University





Archive powered by MHonArc 2.6.19+.

Top of page