Add tcpsocket.

TODO:
 * check for getaddrinfo() in configure
 * fallback if getaddrinfo() is unavailable
This commit is contained in:
Jonathan Schleifer 2012-09-30 00:34:49 +02:00
parent 0452bfc9ef
commit c18e55e2ff
6 changed files with 198 additions and 4 deletions

View file

@ -24,7 +24,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdarg.h>
#include <string.h>
#include <fcntl.h>
@ -129,7 +128,7 @@ file_close(void *ptr)
close(file->fd);
}
struct cfw_stream_ops stream_ops = {
static struct cfw_stream_ops stream_ops = {
.read = file_read,
.write = file_write,
.eof = file_eof,