Hi,

SOL_SOCKET is 1 on linux but according to the man page of TCP(7) SOL_TCP (=6) should be used.
I have changed the code to use he number 6 instead of SOL_TCP. SVN 368.

/// Jürgen


On 07/08/2014 03:51 PM, Elias Mårtenson wrote:
The value should be SOL_SOCKET (also true for Linux).

Regards,
Elias


On 8 July 2014 21:42, Juergen Sauermann <juergen.sauerm...@t-online.de <mailto:juergen.sauerm...@t-online.de>> wrote:

    Hi Elias,

    how is it called then? And what is its value? 6 for PROTO_TCP?

    /// Jürgen



    On 07/08/2014 03:05 PM, Elias Mårtenson wrote:
    A new error when building on OSX:

    g++ -DHAVE_CONFIG_H -I. -I../..    -I .. -g -O2 -DAP_NUM=210 -g
    -MT AP210-UdpSocket.o -MD -MP -MF .deps/AP210-UdpSocket.Tpo -c -o
    AP210-UdpSocket.o `test -f '../UdpSocket.cc' || echo
    './'`../UdpSocket.cc

    *../Svar_DB.cc:94:25: **error: **use of undeclared identifier
    'SOL_TCP'*

    setsockopt(DB_tcp, SOL_TCP, TCP_NODELAY, &ndelay, sizeof(int));

    *                  ^*

    1 error generated.

    make[3]: *** [AP100-Svar_DB.o] Error 1

    Regards,
    Elias




Reply via email to