SCTP protocol support on MS Windows, looking for help
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 3 123 LastLast
Results 1 to 15 of 41

Thread: SCTP protocol support on MS Windows, looking for help

  1. #1
    Join Date
    Mar 2007
    Posts
    4

    SCTP protocol support on MS Windows, looking for help

    Hello!

    I want to use SCTP protocol on Windows, but it's much harder, that I was thinking. Under Linux I haven't got any problems, because it have native implementation and simple API.

    I found SCTP implementation (sctpplib from www.sctp.de). I'm trying to understand it's API, but without good dosumentation and simple examples it's really hard.

    Does anyone have any experience with this protocol on Windows?

  2. #2
    Join Date
    Jun 1999
    Location
    North Germany
    Posts
    300

    Re: SCTP protocol support on MS Windows, looking for help

    Hi

    did you solve the problem? I ask because I shall write a SCTP Applikation too and found that API but I have no idea how to use it or how it works

    best regards
    Grit
    Last edited by Grit; August 27th, 2009 at 07:11 AM.

  3. #3
    Join Date
    Nov 2009
    Location
    Scotland
    Posts
    18

    Re: SCTP protocol support on MS Windows, looking for help

    You might want to try SctpDrv: it adds support for SCTP as a Winsock provider and a library you need to link to in order to use the SCTP API. You can get a version for 32-bit Windows XP and 32/64 bit Windows Vista and 7 from http://www.bluestop.org/SctpDrv . Documentation is available at http://www.bluestop.org/SctpDrv/doc/.
    Last edited by brucec; January 20th, 2010 at 09:27 AM. Reason: Added information about the new version

  4. #4
    Join Date
    Nov 2009
    Posts
    6

    Unhappy Re: SCTP protocol support on MS Windows, looking for help

    Hello brucec,

    I'm also interested in using SCTP on Windows. So I've tried to install sctpDrv (of X'mas ver. ) into Windows XP (SP3), but failed. The error message says "startservice=87" (that could mean "wrong parameters").
    Then, I also tried to use sctpDrv of the former version (Mar. 2008), but it didn't also work well.
    Of course, I followed the instruction at http://www.co-conv.jp/en/product/sctpDrv/20081224.

    I'd be happy to hear whether you've successfully used it on Windows XP (or Vista) or not and to hear any advices or suggestions about it.

    BR,

    Nik

  5. #5
    Join Date
    Nov 2009
    Location
    Scotland
    Posts
    18

    Re: SCTP protocol support on MS Windows, looking for help

    I've installed sctpDrv on XP SP3, but I've just realised the instructions don't say that you need IPv6 installed. To install it, run "netsh interface ipv6 install". You can check if sctpDrv is installed correctly by running the echo_client and echo_server apps in c:\program files\sctpDrv\bin .

  6. #6
    Join Date
    Nov 2009
    Location
    Scotland
    Posts
    18

    Re: SCTP protocol support on MS Windows, looking for help

    I created a new version earlier today with a few bugs fixed, changed the installer language to English and added some detail if things do fail. I've put instructions at http://www.bluestop.org/sctpDrv and the installer files can be found at http://www.bluestop.org/sctpDrv/releases .

  7. #7
    Join Date
    Nov 2009
    Posts
    6

    Re: SCTP protocol support on MS Windows, looking for help

    Hello brucec,

    Many thanks. I'm sorry for my belated reply. I was out for a week.
    Anyway, I've just tried installing sctpDrv on several machines one of which could successfully accept it (w/o any errors). However, when I try to run echo_client and echo_server apps (by typing echo_server.exe serv), I face the error that says "GetAddrInfo: The specified class was not found". I've been using Windows XP SP3 Japanese version. :-)

    Further, concerning BUILDing sources, I've been getting a lot of errors. I just changed "makerelease.bat" file like adding the line "set WDKPATH=(path to the WinDDK directory)" and modifying slightly the line that begins with "cmd \c" from "-f Makefile.wix" to "-f wix\Makefile.wix".

    An example of errors is:
    1>errors in directory c:\(some direcotries)\sctpdrv\drv
    1>c:\windkk\7685.(...)\bin\makefile.new(7117) : error U1087: cannot have : and :: dependents for same target
    1>c:\nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS0 /nologo /f c:\windkk\7685.(...)\bin\makefile.def NOLINK=1 PASS0ONLY=1 MAKEDIR_RELATIVE_TO_BASEDIR= failed - rc = 2

    I refered to the website at http://www.bluestop.org/sctpDrv.

    I'd be happy to hear any advices from you.

    Best wishes,

    Nikurah

  8. #8
    Join Date
    Nov 2009
    Posts
    6

    Re: SCTP protocol support on MS Windows, looking for help

    Hello brucec,

    I realized that some spaces in the name of the directory caused the errors. So, I've just retried building again and gotten the summary shown as follows:
    1591 files compiled - 2 Warnings - 3 Errors - 890 LPS
    77 libraries built - 1 Error
    221 executables build

    So, I'm gonna try finding the position where errors occured.

    Gruesse,

    Nikurah

  9. #9
    Join Date
    Nov 2009
    Location
    Scotland
    Posts
    18

    Re: SCTP protocol support on MS Windows, looking for help

    That sounds like far too many libraries and executables it built - are you sure you were running the command in the sctpDrv directory?

  10. #10
    Join Date
    Nov 2009
    Posts
    6

    Re: SCTP protocol support on MS Windows, looking for help

    Thx for ur quick reply.

    Actually I was wrong.
    I've gotten the new errors as follows:

    1>errors in directory d:\sctpdrv\netsh\sctpmon
    1>d:\sctpdrv\netsh\sctpmon\sctpmon.c(27) : error C1083: Cannot open include file: 'netsh.h': No such file or directory

    1>link : error LNK1181: cannot open input file 'd:\sctpdrv\netsh\sctpmon\objfre_wxp_x86\i386\sctpmon.obj'

    1>errors in directory d:\sctpdrv\apps\echo_client
    1>d:\sctpdrv\apps\echo_client\echo_client.obj : error LNK2019: unresolved extern
    al symbol __imp__GetNameInfoW@28 referenced in function _wmain
    1>d:\sctpdrv\apps\echo_client\echo_client.obj : error LNK2019: unresolved extern
    al symbol __imp__GetAddrInfoW@16 referenced in function _wmain
    1>d:\sctpdrv\apps\echo_client\objfre_wxp_x86\i386\echo_client.exe : error LNK112
    0: 2 unresolved externals

    1>errors in directory d:\sctpdrv\apps\echo_server
    1>d:\sctpdrv\apps\echo_server\echo_server.obj : error LNK2019: unresolved extern
    al symbol __imp__GetNameInfoW@28 referenced in function _wmain
    1>d:\sctpdrv\apps\echo_server\echo_server.obj : error LNK2019: unresolved extern
    al symbol __imp__GetAddrInfoW@16 referenced in function _wmain
    1>d:\sctpdrv\apps\echo_server\objfre_wxp_x86\i386\echo_server.exe : error LNK112
    0: 2 unresolved externals

    ...etc.

    I'd be happy if you would kindly help me.

    BR,

    Nikurah

  11. #11
    Join Date
    Nov 2009
    Location
    Scotland
    Posts
    18

    Re: SCTP protocol support on MS Windows, looking for help

    That's an expected error - it's mentioned on my site, but perhaps not very clearly. Unfortunately the WDK doesn't support long filenames, and we need to reference headers and libraries in C:\Program Files\Microsoft SDKs\Windows\v7.0 - on my PC that ends up as C:\PROGRA~1\MICROS~2\Windows\v7.0 but on computers with other Microsoft directories it might end up as MICROS~3 etc.

    I don't know of any solution other than to manually edit sctpDrv\netsh\sctpmon\sources and change the directory. You can find the short filename you need by running "dir/x" in a command prompt.

    The 7.0.0 WDK also has a bug where GetNameInfo and GetAddrInfo have been mangled; the best option is probably to copy ws2_32.lib from lib\win7\i386 to lib\wxp\i386 in C:\WinDDK\7600.16385.0
    Last edited by brucec; November 17th, 2009 at 04:52 AM. Reason: Added info about the other error

  12. #12
    Join Date
    Nov 2009
    Location
    Scotland
    Posts
    18

    Re: SCTP protocol support on MS Windows, looking for help

    I've updated the page at http://www.bluestop.org/sctpDrv with a section "Known Build Errors" which I hope will help you solve the errors you're seeing.

  13. #13
    Join Date
    Nov 2009
    Posts
    6

    Re: SCTP protocol support on MS Windows, looking for help

    Great instruction!!
    I've successfully built them. ;-)

    And also could run default apps (echo).

    Thanks for your kind support so far.

    Nikurah

  14. #14
    Join Date
    Jan 2010
    Posts
    13

    Re: SCTP protocol support on MS Windows, looking for help

    Is the http://www.bluestop.org/sctpDrv down or moved? I tried to use the jp version msi but failed with the error message "StartService=87", eventhough I installed IPv6. Since the http://www.bluestop.org/sctpDrv is gone I cannot find the Bruce's version. Any information is highly appreciated!

  15. #15
    Join Date
    Nov 2009
    Location
    Scotland
    Posts
    18

    Re: SCTP protocol support on MS Windows, looking for help

    http://www.bluestop.org/sctpDrv is up and running for me, and I can't see any problems accessing it over IPv4, IPv6 or from different locations. If you're having problems accessing the site, I've also put the releases on Sourceforge at http://www.sourceforge.net/projects/sctpdrv . Version 1.1.2 has lots of installer fixes - you can access both English and Japanese MSI files by clicking on the "View all files" button.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center