lkml.org 
[lkml]   [2008]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: AF_UNIX MSG_PEEK bug?
    Potential bugs notwithstanding, given that this is a STREAM socket, and 
    as such shouldn't (I hope, or I'm eating toes for dinner again) have
    side effects like tossing the rest of a datagram, why are you using
    MSG_PEEK? Why not simply read the N bytes of the message that will have
    the message length with a normal read/recv, and then read that many
    bytes in the next call?

    rick jones


    \
     
     \ /
      Last update: 2008-01-08 23:43    [W:0.040 / U:4.876 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site