Add tcpsocket.
TODO: * check for getaddrinfo() in configure * fallback if getaddrinfo() is unavailable
This commit is contained in:
parent
0452bfc9ef
commit
c18e55e2ff
6 changed files with 198 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue