SCTP Discussions

Text archives Help


RE: [SCTP-Discussion] Can I use fork() function by sctplib-1.0.0 -pre17?


Chronological Thread 
  • From: Tuexen Michael <Michael.Tuexen AT icn.siemens.de>
  • To: "'discussion AT sctp.de'" <discussion AT sctp.de>
  • Cc: "'Hyung Jun, Choi'" <forbl AT emerald.yonsei.ac.kr>
  • Subject: RE: [SCTP-Discussion] Can I use fork() function by sctplib-1.0.0 -pre17?
  • Date: Mon May 6 14:07:01 2002
  • List-id: SCTP Discussions <discussion.sctp.de>

Dear Jun,

you can not use fork with our library. The reason is the follwing:

The SCTP implementation is part of your (unix) process. If you fork
an exiting one you have two SCTP engines serving the same association.
This does not work.

If you use our socket-API you can use multiple threads instead of multiple
processes. You can find an example for that in
sctplib/socket_programs/TCP_combined_server.c

The only possibility would be using the sctpd and extend the sctpdlib
to support fork. Since sctpd is no longer supported by their developers
you would be on your own. Since the multithreaded approach is supported
we do not have any plans to support fork in the (near) future.

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: Hyung Jun, Choi
> [SMTP:forbl AT emerald.yonsei.ac.kr]
> Sent: Monday, May 06, 2002 7:38 AM
> To:
> discussion AT sctp.de
> Subject: [SCTP-Discussion] Can I use fork() function by
> sctplib-1.0.0-pre17?
>
>
> Hello?
> I have a question about sctplib.
>
> I want to make a multi-chat server. When I use 'fork()' function in my
> server program
> that is not work in child process!
>
> What's the problem?
>
> If you know the reason or solution please reply me.
>
> Thank you for your reading. :-)
>
> Jun
>
>
>
>
>



  • RE: [SCTP-Discussion] Can I use fork() function by sctplib-1.0.0 -pre17?, Tuexen Michael, 05/06/2002

Archive powered by MHonArc 2.6.19+.

Top of page