Search:

Type: Posts; User: qualia

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,711

    one last thing, obviously i'm not understanding...

    one last thing, obviously i'm not understanding strcspn,
    the example i seen on cplusplus.com leads me to believe that strcspn for my purpose should return something like 300 or so, but as i said it...
  2. Replies
    5
    Views
    1,711

    hi, thanks, strstr works fine to locate the...

    hi,
    thanks, strstr works fine to locate the encoding header then memset to 0 the length of the encoding string but that only works because i know what sort of content i'm receiving from the remote...
  3. Thread: output of sound

    by qualia
    Replies
    3
    Views
    1,389

    you'll need a codec to play mp3 files, wavs are...

    you'll need a codec to play mp3 files,
    wavs are easier afaik beyond the header theres just raw data,
    if theres enough onboard memory you can load the raw sample data (you'll need to find a way to...
  4. Replies
    5
    Views
    1,711

    strcspn return incorrect results

    hello,
    i'm trying to locate the occurence in a string of a comparison string using srcspn, but it never returns correct results,



    char acc[] = "Accept-Encoding:";
    int loc = strcspn(tmp,...
  5. is it necessary to use pthread and select for concurrent sockets

    hello,
    is it necessary to use pthread and select if i want to build a http server and wish to have concurrent client access?
    like this code from the gnuc library page...
  6. Replies
    0
    Views
    6,572

    efficient covariance matrix

    hello,
    i have a routine to calculate the 3x3 covariance matrix of a nx3 matrix, however it's not very efficient as it uses 3 nested for loops, and with large data sets it really clogs up. i was...
  7. Replies
    1
    Views
    5,159

    create UDP "listener" with pthread

    hello,
    i'm trying to write a UDP client for a basic "chat" service, basically i want the client to receive and print messages sent to it from the server, however still allow the user to enter text...
  8. Replies
    2
    Views
    1,099

    hi yes, that was it, another silly mistake,...

    hi yes,
    that was it, another silly mistake,
    thanks
  9. Replies
    2
    Views
    1,099

    compiler warning with sprintf and inet_ntop

    hello, i have a bunch of string formatting using sprintf and inet_ntop such as:


    sprintf(tmp, "Message received from: <ip>:%s <port>:%d",
    inet_ntop(client->addr.sin_addr), ...
Results 1 to 9 of 11