SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] sendmsg on UDP-style socket


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: discussion AT sctp.de
  • Cc: Torbjorn Andersson <tora AT tora-pc.cs.kau.se>
  • Subject: Re: [SCTP-Discussion] sendmsg on UDP-style socket
  • Date: Fri May 3 19:52:01 2002
  • List-id: SCTP Discussions <discussion.sctp.de>

Torbjörn,

please have a look at
sctplib/socket_programs/UDP_combined_Server.c

The daytime service is what you are looking for. You can also have
a look at the example in the
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-sctpsocket-03.txt
This example does not run with pre17, because there is a bug in the
recvmsg/sendmsg stuff regarding the handling of the assoc_id. This will
be fixed in pre18 for which you are waiting too long for...
But are still fixing bugs and we will release is as soon as we do not
know about any bugs. This should be really soon.

Best regards
Michael

On Friday, May 3, 2002, at 02:00 PM, Torbjorn Andersson wrote:

I'm trying hard to program a server, which utilize UDP-style SCTP sockets.

I use recvmsg to listen for assoc_change events when clients connect for some
other computer. The server is then supposed to send messages back to the
client through the same socket, with the sendmsg() function.

I'm been trying to do this for a couple of days and my confidence has dropped
some bit now :( I haven't succeded in this yet !
My problem seems to be that i'm not able to get the clients sockaddr which i
should receive when I get a COMMUNICATION_UP, in the msghdr structure ->
msghdr->msg_name.



Can someone help me with a code example on how to listen for connection on a
UDP-style socket and directly after an connection send a message back to the
computer that just connected to us ?

/Grateful
Torbjörn
_______________________________________________
discussion mailing list
discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/discussion


Michael.Tuexen AT micmac.franken.de





Archive powered by MHonArc 2.6.19+.

Top of page