- From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
- To: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
- Cc: "'discussion AT sctp.de'" <discussion AT sctp.de>
- Subject: Re: R: R: [SCTP-Discussion] simple Client
- Date: Wed Apr 14 11:17:03 2004
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University Duisburg-Essen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Great !
On Mittwoch 14 April 2004 11:03, Michael Tuexen wrote:
>
>
We need to modify adaptation.c. It has to run at least two threads...
Well actually I thought that when the (non-blocking) sctp_getEvents()
is used, it might also be possible to do the dispatching in the
application...but...
>
> In general, if you want to run a terminal like program under Windows,
>
> which can read data from stdin, you may just have to create a program
>
> with an event loop that does the following things:
>
> - - poll user data input (via windows functions):
>
> if user types in data on the prompt (or in a window or whereever,
>
> this data can be sent via SCTPs sctp_send() in an appropriate
>
> function that handles the user input)
>
> - - calls sctp_getEvents() or sctp_eventLoop() which polls or waits
>
> for SCTP events.
>
> - - treat any other relevant events (usual windoze stuff).
>
>
Well, you need to run multiple threads. The easiest way is to modify
>
adaptation.c. We have an (much simpler) version of adaptation.c running
>
on Windows and Unix which handles this problem.
...if that is so: why not just switch your version and the current one ?
I certainly wouldn't mind. However, that may need to be tested with
Thomas (and the socketapi-library), if you haven't already done so.
Best regards,
Andreas
- --
Dipl.-Ing. Andreas Jungmaier
Computer Networking Technology Group
University of Duisburg-Essen
http://www.exp-math.uni-essen.de/~ajung
PGP Key-ID: D382 4AC0
PGP Key-Fingerprint: 228C 7C2C 3381 2DD4 9998 2812 5C0B 0B04 D382 4AC0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAfQBSXAsLBNOCSsARAsi2AKCmPRWzO3fBZyTGAxsX8qAvQD7oEgCg5156
FevNKQ/25pkoVI3FOsa9zQg=
=NAq5
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.