[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[openss7] Re: question
yanxinyu,
yanxinyu wrote: Wed, 02 Jan 2002 18:34:48
>
> brian:
> If I want to write a user-level STREAMS application based on
> SCTP,which test programs should I refer to,Test-sctp_n.c,
> test-sctp_t.c or others? which device should I open, /dev/sctp_n,
> /dev/sctp_t or others?
Use test-sctp_n.c or test-sctp_t.c. You could also use an XTI library.
test-sctp_n.c opens /dev/sctp_n
test-sctp_t.c opens /dev/sctp_t
If you use an XTI library, open /dev/sctp_t ... i.e. t_open("/dev/sctp_t")
> Would you please give me a simplest case about how to
> Initialize(similar to bind),
Under XTI use t_bind(). Include <sys/xti_sctp.h> and use the sctp_addr_t
for the address structure.
> Associate(similar to connect),
t_connect()
> Send message,
t_snd()
> Receive message
t_rcv()
> and Shutdown?
t_sndrel()
t_snddis() will give you an ABORT.
See XTI Library Functions and Parameters at
http://www.opengroup.org/onlinepubs/009619199/index.htm
--brian
--
Brian F. G. Bidulock ¦ The reasonable man adapts himself to the ¦
bidulock@openss7.org ¦ world; the unreasonable one persists in ¦
http://www.openss7.org/ ¦ trying to adapt the world to himself. ¦
¦ Therefore all progress depends on the ¦
¦ unreasonable man. -- George Bernard Shaw ¦
- References:
- question
- From: "yanxinyu" <yanxinyu@mail.iwv.com.hk>