SCTP Discussions

Text archives Help


RE: [SCTP-Discussion] Re: Would you explain some functionalities in sctp socket program?


Chronological Thread 
  • From: Tuexen Michael <Michael.Tuexen AT icn.siemens.de>
  • To: "'Thomas Dreibholz'" <dreibh AT exp-math.uni-essen.de>, yoonsuk AT ccmc.knu.ac.kr
  • Cc: discussion AT sctp.de
  • Subject: RE: [SCTP-Discussion] Re: Would you explain some functionalities in sctp socket program?
  • Date: Tue Aug 13 12:37:00 2002
  • List-id: SCTP Discussions <discussion.sctp.de>

Dear all,

you find C programs in sctplib/socket_programs. The documenation is
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-sctpsocket-04.txt

TCP_combined_server.c
A multithreaded server providing chargen, discard, echo and daytime
services using the TCP like API.

UDP_combined_server.c
A server providing chargen, discard, echo and daytime
services using the UDP like API.

idexampletcp.c
The TCP like API example from the ID (internet draft).

idexampletcp.c
The UDP like API example from the ID (internet draft).

Best regards
Michael

Michael Tuexen Tel.: +49 89 722 47210
Siemens AG Fax: +49 89 722 48212
ICN WN CC SE 7 e-Mail:
Michael.Tuexen AT icn.siemens.de


> -----Original Message-----
> From: Thomas Dreibholz
> [mailto:dreibh AT exp-math.uni-essen.de]
> Sent: Tuesday, August 13, 2002 10:02 AM
> To:
> yoonsuk AT ccmc.knu.ac.kr
> Cc:
> discussion AT sctp.de
> Subject: [SCTP-Discussion] Re: Would you explain some
> functionalities in
> sctp socket program?
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am Dienstag, 13. August 2002 09:10 schrieben Sie:
> > Hellow, my name is choi yoonsuk.
> > I'm in kyungpook national university of South Korea.
> > I've recently studied SCTP.
> > I have several questions about your sctp program.
> >
> > I installed sctplib-1.0.0-pre18 and tested socket programs.
> >
> > I used the sctpmultiserver and the sctptftp in
> > sctplib-1.0.0-pre18/sctplib/cppsocket_program directory.
> It works well. I
> > wanna use multiple stream and unordered delivery function.
> I can't set this
> > parameter. Would you tell me how to handle it.
>
> First, read the draft
> http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-sctpsocke
> t-04.txt . It
> describes the socket API. To use multiple streams, you have
> to use the
> initialization parameter SCTP_INITMSG. It gives the structure
> sctp_initmsg to
> the SCTP instance using an ext_setsockopt() call. It sets the
> number of
> outgoing and maximum number of incoming streams. Have a look
> at the sources
> sctpterminal.cc and sctpmultiserver.cc for examples in C++
> (see below).
>
> To use unordered delivery, use the MSG_UNORDERED flag for
> ext_sendmsg(),
> ext_sendto() or ext_send() calls.
>
>
> > I saw some applications in
> sctplib-1.0.0-pre18/sctplib/program directory.
> > In that application, they use sctp_send.
> > Using this api, I can set parameters about multiple stream
> and unordered
> > delivery function
> But, I don't know how to handle a appliction in
> > sctplib-1.0.0-pre18/sctplib/cppsocket_program directory.
> And, there are
> > some differences among applications in two directorys in that sctp
> > fucntionalities?
> > Thank you.
>
> sctplib is the SCTP protocol implementation. It uses a
> non-standard callback
> API. If you want to use an API like it is provided by the
> system for TCP,
> UDP, etc., then you can use the socket API which is described by
> draft-ietf-tsvwg-sctpsocket-04.txt. The socket API is a
> thread-safe wrapper
> for the sctplib functions.
> In the cppsocketapi directory, there is a C++ wrapper for the
> C socket API.
> It makes programming a easier by providing classes for
> sockets and addresses.
> The cppsocket_programs contains example programs (in C++) for the C++
> classes. When you have read the draft, you probably will have
> no problems in
> adapting the C++ examples to C code.
>
>
> Best regards
> - --
> ==============================================================
> =========
> Dipl.-Inform. Thomas Dreibholz
>
> University of Essen, Room ES210
> Inst. for Experimental Mathematics Ellernstraße 29
> Computer Networking Technology Group D-45326 Essen/Germany
> -
> --------------------------------------------------------------
> ---------
> E-Mail:
> dreibh AT exp-math.uni-essen.de
> Homepage: http://www.exp-math.uni-essen.de/~dreibh
> ==============================================================
> =========
>
> - -----BEGIN PGP PUBLIC KEY BLOCK-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: Weitere Infos: siehe http://www.gnupg.org
>
> mQGiBDr2cOgRBAC71Xhy1yzNTBxnousyxwtZ+zxRQ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imSJGDt1
> pnfEz/Cw3cYYvwADBwf/bV9iJO22zTJaB5Sz8dzbQfwaa55fugi7DvPOe5eiE1p9
> /W+uPJTYZ7WQxarM8q/h8BztwOAfeUKztzoGSVvEfxha8Wnvz/3rLWLK1Ok+v9ZV
> ElrAYmJbbEci1Lmk1vXwmjcYoojYl/25mhkvucg8zVO8WfNYCwBUkGUGUj+SQpbf
> xEt80dyGm6KFv9XO1fAzlUXkWBODZ4vDPNRY+Ay4evAFkbfKFgHXMUBvtXlGfuSQ
> pTRXNt0mfRVZ4OeeIKbPdCI8DX5ND9+cIWEQJ2APgWta+h61kwJ5c7k2xxabbYt6
> v9jTzPr57yvVle4fOV6ExUeCcFaRIzvX+87FMoac+YhGBBgRAgAGBQI69nD8AAoJ
> EN9gW7B2Dy1lPpwAnR3YQYZRN4WouZwLcGpfMfH2X5RVAKDCa7d6Hwhoa7DrPaTA
> P/965IPybA==
> =g36Q
> - -----END PGP PUBLIC KEY BLOCK-----
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE9WLzn32BbsHYPLWURAogcAKC7yCpNaQzW7sWxdclASZi/RLoXAwCgrI/p
> exOxlEICC91O8MD5DiQneP8=
> =3HII
> -----END PGP SIGNATURE-----
> _______________________________________________
> discussion mailing list
> discussion AT sctp.de
> http://www.sctp.de/mailman/listinfo/discussion
>



  • RE: [SCTP-Discussion] Re: Would you explain some functionalities in sctp socket program?, Tuexen Michael, 08/13/2002

Archive powered by MHonArc 2.6.19+.

Top of page