src/sock.c
changeset 8 be88e543c8ff
parent 5 a09a0797f6f0
child 9 4c4c906cc649
equal deleted inserted replaced
7:844f014409ff 8:be88e543c8ff
    33 {
    33 {
    34     // proxy off to method handler
    34     // proxy off to method handler
    35     return sock->type->methods.write(sock, buf, len);
    35     return sock->type->methods.write(sock, buf, len);
    36 }
    36 }
    37 
    37 
    38 void sock_stream_error (struct sock_stream *sock, struct error_info *err)
    38 const struct error_info* sock_stream_error (struct sock_stream *sock)
    39 {
    39 {
    40     // copy from SOCK_ER
    40     // return pointer
    41     *err = *SOCK_ERR(sock);
    41     return SOCK_ERR(sock);
    42 }
    42 }