- From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
- To: discussion AT sctp.de
- Cc: Dilip <dilris AT yahoo.com>
- Subject: Re: [SCTP-Discussion] Socket API Question
- Date: Tue Sep 11 15:59:01 2001
- List-id: SCTP Discussions <discussion.sctp.de>
Dear all,
see my comments below.
Best regards
Michael
Thomas Dreibholz wrote:
>
>
-----BEGIN PGP SIGNED MESSAGE-----
>
Hash: SHA1
>
>
Am Dienstag, 11. September 2001 14:28 schrieb Dilip:
>
> Hi
>
>
>
> The socket api allows us to have features similar to
>
> the normal socket api for TCP/UDP.
>
>
>
> Does the SCTP socket api support the feature of
>
> select()
>
> if not can anyone suggest how to have a server which
>
> is single threaded concurrent.
>
>
select() is not implemented in the current version of the socket API. This
>
will be implemented in a future version. At the moment, you can use threads
>
to simultaneously serve several clients (see sctpmultiserver.cc for a
>
complete C++ example).
There will be C based examples with the next release. You can NOT write
a single thread concurrent server right now. After an implementation of a
ext_select call you can, but this is for a future release.
>
>
> If I fork a process will the new process get the SCTP
>
> support?? (as I understand that we cant have 2 SCTP
>
> applications running on the same host)
>
>
This is possible if sctpd is used instead of the original sctplib. The sctpd
>
server contains the sctplib instance. sctpd clients use this single instance
>
via this server.
>
Note: The socket API has not been tested with sctpd yet!
You can NOT use fork in combination with the sctpd. And even if we
have implemented the socket_api on top of the sctpd, you will have to
use an ext_fork() call which does more that simply fork.
>
>
> ---
>
> Also when I terminate the client (Ctrl-C) the server
>
> doesnt get the LOST communication.. it still runs
>
> assuming the client to be there...
>
>
Which client program do you use? If you use "sctpterminal" in the
>
socket_programs directory, the Ctrl-C signal is intercepted by the program
>
(using a signal handler) and a clean shutdown is made. If you use
>
"terminal",
>
Ctrl-C immediately stops the program and therefore the complete SCTP
>
instance. A shutdown is not sent to the server and so it does not recognise
>
the terminal program's removal.
That is correct. Even in the C based examples you to give to sctp thread time
to complete its work. This is different from a kernel implementation.
>
>
Best regards
>
- --
>
=======================================================================
>
Dipl.-Inform. Thomas Dreibholz
>
>
University of Essen, Office 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.5 (GNU/Linux)
>
Comment: Weitere Infos: siehe http://www.gnupg.org
>
>
mQGiBDr2cOgRBAC71Xhy1yzNTBxnousyxwtZ+zxRQJIfkDUQ8Yry5/rdoRkUldnE
>
VQUNX9owxKKwA40DsKMX5lfPIgfPpefqnSOx1/XOtjpffkF8+FY8ncU/LKvHPPw3
>
oNXzFAr8F6NqpJAIbp8eW6DlfraXiJFZk0D6sZyIk9XDqTY01+Dn5WmAewCg4Szj
>
r52geHYk+6n83yfVqw8+c3MD/A9d4ylhJikTHzbL83HTO7WozqlGtZq0rwGY+JIq
>
wPAaRAdBnu0brQz7xtfTZrvxA6v3sYb73bpuosaQNtg1K5Z0l0fbJQxls7wCdSC4
>
GmkXyl64c1bPiGMHu7WVE85mwdm4KyD7qELnnNKZoagFgK1HNYFJtuUDYQ3ihBQq
>
k0VnBACaqJ4k/VJYPQvuWy0fppX+Ultyqz2rrHqqVvaSotjc8muxwM0OL42ZCjL1
>
scuFb1TonojymUFa1nqe6uYU5Owjh2CRfs5+TnMUO7S7vXQRQgWPffIE7kJqL46G
>
S79MmHXVWwmO1WMpJooTlsCUv+J+pAWpYu5nJY4X/s+1DXSA9LQvVGhvbWFzIERy
>
ZWliaG9seiA8ZHJlaWJoQGV4cC1tYXRoLnVuaS1lc3Nlbi5kZT6IVwQTEQIAFwUC
>
OvZw6AULBwoDBAMVAwIDFgIBAheAAAoJEN9gW7B2Dy1l6BcAnRhM7hgy3qOLDKps
>
qIY88XZaMjMqAKDHqpiM/8CFpti9TKeIP/mRbva/3rkCDQQ69nD8EAgApETE6wER
>
FSA5YMQvoqNPYpf8W3y+u+BJvD2QMdKXFy79XnYCoOB26q0JK5gGw1GTB39ANOpc
>
3x5dkSNDiJptntB9DX7SEb1V+GU62XZOhju6o4GbLlhRsy40SVvzZ/RldkoYeCRH
>
1JghU7EkGsn8RcLuRFj7AgW+bWkIyC3NCGZN+mdc/mmRxYqeFpMQv2+Xnb1EuCk6
>
jqDJL6IjVKueYZD5XtKXW+QAj1UlRo9vGpNLs7oZz3QahEgf0S5Cn9eLp2JRr94D
>
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
>
>
iD8DBQE7ngea32BbsHYPLWURAg+PAKCF9MnCVl86Rgg04v7Q5nIQevWNmwCfV9Pd
>
lHWso5cPsYjhyTPZWA4a4MM=
>
=tGJt
>
-----END PGP SIGNATURE-----
>
_______________________________________________
>
discussion mailing list
>
discussion AT sctp.de
>
http://www.sctp.de/mailman/listinfo/discussion
Archive powered by MHonArc 2.6.19+.