SOCKADDR not found

I cannot find the SOCKADDR or SOCKADDR_IN structure used in many functions such as bind http://www.keil.com/support/man/docs/rlarm/rlarm_bind.htm
or
recvfrom http://www.keil.com/support/man/docs/rlarm/rlarm_recvfrom.htm

I have included <RTL.h> header file in which there is no trace of SOCKADDR at all. Please Help!!!

Parents
  • What version of MDK have you got installed?

    In 4.23 it's in \Keil\ARM\RV31\INC\RTL.h

    /* BSD Socket typedef's */
    typedef struct sockaddr {         /* << Generic Socket Address structure >>  */
      U16  sa_family;                 /* Address family                          */
      char sa_data[14];               /* Direct address (up to 14 bytes)         */
    } SOCKADDR;
    

    Check BSD socket functions.

Reply
  • What version of MDK have you got installed?

    In 4.23 it's in \Keil\ARM\RV31\INC\RTL.h

    /* BSD Socket typedef's */
    typedef struct sockaddr {         /* << Generic Socket Address structure >>  */
      U16  sa_family;                 /* Address family                          */
      char sa_data[14];               /* Direct address (up to 14 bytes)         */
    } SOCKADDR;
    

    Check BSD socket functions.

Children
More questions in this forum