equal
deleted
inserted
replaced
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); |