SCTP Discussions

Text archives Help


[SCTP-Discussion] WG: General hints for changing an application from TCP to SCTP


Chronological Thread 
  • From: "Alfred Boucek" <Ing.AlfredBoucek AT gmx.at>
  • To: "SCTP" <discussion AT sctp.de>
  • Subject: [SCTP-Discussion] WG: General hints for changing an application from TCP to SCTP
  • Date: Fri May 24 18:52:01 2002
  • Importance: Normal
  • List-id: SCTP Discussions <discussion.sctp.de>

Do you have general hints for changing a C coded application from TCP to
SCTP on LINUX SUSE7.2?
I took a working Client Server Application and tried to port it to SCTP
(pre17)
First it looked rather simple just changing names of System calls
socket to ext_socket (change IPROT_TCP to _SCTP)
connect and listen to ext_connect and ext_listen
bind to ext_connect,...
Because of a hint from Michael Tuexen I use ext_bind in the client too!
write to ext_write
read ext_read
close ext_close
Do I have to change more like sockaddr_in?
Is the some document, which shows differences between TCP and SCTP Sockets?

But now it looks that a hard time of debugging starts
My client is getting the socket 1023, exbind returns ok, but the ext_connect
returns -1 and the error code is 5, which
should mean (EIO)I/O error.
My server is running but not responding to the SCTP INITS chunks, when I
test it with sctpterminal.
I received an example client and sever code using TCP like Sockets from
Michael Tuexen. See attached files. So I try the example client and server
on the same machine since the use the loop back interface.
But the sample client failed similar to my client on the ext_connect. See
what I got...
linux:/usr/SCTP/socket_programs # ./TPclient
connect call failed: Input/output error
WARNING: SCTPSocket::receiveFrom() - No global queue!
read call failed: Bad file descriptor
Give the SCTP thread time to clean up ... done.
linux:/usr/SCTP/socket_programs #

I didn’t get any frame out of the clients neither with the example client
nor with my client.
I checked with ethereal and with
tethereal -n -i lo -R sctp

The example server works fine with sctpterminal. So I have working TCP like
Socket server example and therefore I am looking forward to overcome the
problem with my server within days.

Maybe may build script is the source of the problem? Please see the attached
files.
Are there general problems with LINUX SUSE 7.2 and TCP like Sockets?

Thank you for your help
Alfred Boucek

Attachment: buildC.sh
Description: Binary data

Attachment: buildS.sh
Description: Binary data

Attachment: TCP_like_daytime_client.c
Description: Binary data

Attachment: TCP_like_daytime_server.c
Description: Binary data



  • [SCTP-Discussion] WG: General hints for changing an application from TCP to SCTP, Alfred Boucek, 05/24/2002

Archive powered by MHonArc 2.6.19+.

Top of page