This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Raw sockets not supported by NDK's daemon mechasim?

Hi,

 

It looks like raw sockets are not supported in the DaemonNew call in daemon.c (ie. the SOCK_RAW type). Is there a reason for this? The code in question:

 

-----

HANDLE DaemonNew( uint Type, IPN LocalAddress, uint LocalPort, int (*pCb)(SOCKET,UINT32),
                  uint Priority, uint StackSize, UINT32 Argument, uint MaxSpawn )
{
    int i;
    DREC *pdr = 0;

    // Sanity check the arguments
    if( Type==SOCK_DGRAM )
        MaxSpawn=1;
    else if( Type!=SOCK_STREAM && Type!=SOCK_STREAMNC )

        return(0);

--------

Sockets of type SOCK_RAW will cause DaemonNew to return without spinning the thread. Is there a design reason for this?

 

My application likely requires raw socket communication to achieve the necessary level of efficiency.

 

Thanks, Peter