SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] sctp Socket API question....


Chronological Thread 
  • From: Thomas Dreibholz <dreibh AT exp-math.uni-essen.de>
  • To: discussion AT sctp.de, Dilip <dilris AT yahoo.com>
  • Subject: Re: [SCTP-Discussion] sctp Socket API question....
  • Date: Fri Oct 5 18:28:01 2001
  • List-id: SCTP Discussions <discussion.sctp.de>
  • Organization: University of Essen, Institute for Experimental Mathematics

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Freitag, 5. Oktober 2001 16:47 schrieb Dilip:
> Hi
>
> I am using the sctp socket api..
> like ext_socket,ext_bindx,.....
>
> at my client end
> after creating a socket(ext_socket)
> DO I HAVE TO bind (ext_bind) it.. before calling
> ext_connect.
> and IF yes in the BIND do I need to explicity specify
> the PORT & ADDRESS ( cant I use INADDR_ANY for
> address)

Yes, you have to call ext_bind() before you can use the socket. ext_bind()
uses the sctplib call sctp_registerInstance to create a new instance. The
ext_socket() call only allocates a socket descriptor. INADDR_ANY is not yet
implemented. Therefore, you have to specify the address and port number. This
will be improved in one of the next releases.


> ---
> at my server end..
> while binding do I have to specify the local address
> explicitly... (cant I use INADDR_ANY)
> -----
>
> the ext_send/ext_recv returns negative values some
> time..
> SO is there a way to find out what that error no
> means..
> e.g its returning a error no -108 I tried to grep to
> all the files in all directory but didnt find any -108
> defined.. SO whats this error no... and which file
> defines these error numbers..
> --------

The current release returns negative error numbers from errno.h in case of an
error. The next release will return -1 and the error in the variable "errno",
as the system's socket calls do.

>
> Approximately when would the next release be out...
> and will it support ext_select. (because otherwise we
> hev to use THREADS and that complicates stuff)

The next release will be out soon, I expect it within 2 or 3 weeks. This
release will include ext_select() and ext_poll(). Further, it will almost
completely implement the functionality from the socket API draft.


Best regards
- --
=======================================================================
Dipl.-Inform. Thomas Dreibholz
Molbachweg 7
D-51674 Wiehl-Forst Mail:
dreibh AT exp-math.uni-essen.de
Germany WWW: http://www.exp-math.uni-essen.de/~dreibh
=======================================================================


- -----BEGIN P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UlRo9vGpNLs7oZz3QahEgf0S5Cn9eLp2JRr94D
FVoInZwziOWyEJ8BrJoydDgCAb/5eEdrAc+7ibuPSOnOxVH8ae9zyNbdimSJGDt1
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

iD8DBQE7vd8632BbsHYPLWURAlE6AKDfpC2LeKOV5vVtLweZBiFzFnb9nwCeJ1Iv
aLS0ECLqoij5t8OnBOAGsGk=
=AGPz
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.19+.

Top of page