AmigaE/ECX and socket programming
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 404 from 2014/6/11
    From: Germany
    Hi.

    Any one got example codes or similar for how to do socket programming in AmigaE?
    I'm totally new to AmigaE. Just got AmigaE and ECX installed. But there are no amitcp/sys or similar modules available so I'm wondering whether this works at all or if the modules have to be created first?


    Manfred
  • »03.08.14 - 15:00
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 416 from 2003/2/24
    From: Berlin
    You can use Reggae for networking.
  • »03.08.14 - 17:23
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 404 from 2014/6/11
    From: Germany
    Quote:

    igracki wrote:
    You can use Reggae for networking.



    I guess I could. But I'd like to port my little c program to AmigaE, just out of curiosity.
    It uses serial communication, file I/O, etc. and also sockets to PUT/POST something to my server.


    Manfred
  • »03.08.14 - 18:42
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    You can use bsdsocket.library functions from AmigaE. You probably must build yourself but isnt it just matter of autogenerating modules from fd/clib files?
    1 + 1 = 3 with very large values of 1
  • »03.08.14 - 19:02
    Profile
  • Just looking around
    mikeowen
    Posts: 3 from 2014/8/4
    ======
  • »04.08.14 - 14:30
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 404 from 2014/6/11
    From: Germany
    ECX contains a socket.m module but it seems all relevant constants like AF_INET etc. are missing.

    Manfred
  • »04.08.14 - 15:07
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 416 from 2003/2/24
    From: Berlin
    This module is only for the library function of bsdsocket.library.
    You have to convert the gg:includestd/sys/socket.h manually.
  • »05.08.14 - 12:32
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 416 from 2003/2/24
    From: Berlin
    Hi, just converted sys/socket.h to ECX, you can find it here.
  • »05.08.14 - 13:18
    Profile Visit Website