src/sock.c
changeset 2 a834f0559939
parent 1 cf0e1bb6bcab
child 3 cc94ae754e2a
equal deleted inserted replaced
1:cf0e1bb6bcab 2:a834f0559939
     1 
     1 
     2 #include "sock_internal.h"
     2 #include "sock_internal.h"
       
     3 #include "sock_gnutls.h"
       
     4 
       
     5 void sock_init (void)
       
     6 {
       
     7     // XXX: just call directly for now
       
     8     sock_gnutls_init();
       
     9 }
     3 
    10 
     4 int sock_stream_read (struct sock_stream *sock, void *buf, size_t len)
    11 int sock_stream_read (struct sock_stream *sock, void *buf, size_t len)
     5 {
    12 {
     6     // proxy off to method handler
    13     // proxy off to method handler
     7     return sock->type->methods.read(sock, buf, len);
    14     return sock->type->methods.read(sock, buf, len);