SCTP Discussions

Text archives Help


Re: R: R: [SCTP-Discussion] simple Client


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
  • Cc: 'discussion AT sctp.de' <discussion AT sctp.de>
  • Subject: Re: R: R: [SCTP-Discussion] simple Client
  • Date: Wed Apr 14 11:07:07 2004
  • List-id: SCTP Discussions <discussion.sctp.de>

Andreas,

see my comments inline.

Best regards
Michael

On Apr 14, 2004, at 10:16 AM, Andreas Jungmaier wrote:

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

All,

I think the problem with the stdin handling under Windows
and the "terminal" program is just one of lack of compatibility
between Unix and Windows.

Basically it is that 0 can not be used by select(). This is a
limitation of the socket API provided by Windows.
Michael: maybe we can provide another program, something like
"windozeterminal" (and that is where it starts becoming messy :-)

We need to modify adaptation.c. It has to run at least two threads...

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 there is enough interest in sctplib on Windows we could update
adaptation.c. You have just to handle fd 0 in a special way in the API.

So the question is: How much interest is there?

Best regards
Michael

Hope that helps,

Andreas



On Dienstag 13 April 2004 23:19, you wrote:
It is a limitation of socket API provided by Windows, not of the
compiler. The problem is that stdin is not an fd like you get
back from a socket() call. So the stdin handling in the winsctplib
is currently not working. I do not think that it helps to build
on cygwin with gcc.

The README describes how to build a server and also the echo_tool.
This can act as a client and as a server and you can use it to
play with SCTP on Windows.

Best regards
Michael

On Apr 13, 2004, at 11:12 PM, Mike wrote:
How can I compile the server and the client whit gcc?
I must copy any file in any location?


-----Messaggio originale-----
Da: Michael Tuexen
[mailto:Michael.Tuexen AT micmac.franken.de]
Inviato: martedì 13 aprile 2004 22.19
A: Mike
Cc:
'discussion AT sctp.de'
Oggetto: Re: R: [SCTP-Discussion] simple Client

On the Windows side the client is NOT working due to the limited
capabilities of the Windows stdin handling.

What problems do you encounter with the servers?

I've CCed the list because that is the way you reach also some
people known more about the Windows world than i do.

Best regards
Michael

On Apr 13, 2004, at 10:02 PM, Mike wrote:
Thanks for this information!
I work with windows and I have downloaded the winsctplib. There are
many
server but seem not work correctly. You know why? I have followed the
procedure in the readme.

-----Messaggio originale-----
Da: Michael Tuexen
[mailto:Michael.Tuexen AT micmac.franken.de]
Inviato: martedì 13 aprile 2004 20.28
A: Mike
Cc:
discussion AT sctp.de
Oggetto: Re: [SCTP-Discussion] simple Client

Hi Mike,
I'm assuming that you are talking about the sctplib. There is
a client provided in sctplib/programs: terminal.

Best regards
Michael

On Apr 13, 2004, at 7:05 PM, Mike wrote:
Hi!!

How can I make a simple client for communicate with a server like
echo_server?

Can I modify this server for make a client?

Best regards,

 

Mike

_______________________________________________
discussion mailing list
discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/discussion

- --
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)

iD8DBQFAfPN4XAsLBNOCSsARAgoNAKCIMpiOrSCzECzHEs7XXccqjuLlPQCgwsr7
k1DzXZJdKrw3q1YZNWWO980=
=H7lI
-----END PGP SIGNATURE-----






Archive powered by MHonArc 2.6.19+.

Top of page