source into separate dir; fixed net.h
This commit is contained in:
parent
c98d5ce17c
commit
01fe9c6bf7
|
@ -15,9 +15,6 @@
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
#define PORT(p) PORTSTR(p)
|
|
||||||
#define PORTSTR(p) #p
|
|
||||||
|
|
||||||
void *get_in_addr(struct sockaddr *sa)
|
void *get_in_addr(struct sockaddr *sa)
|
||||||
{
|
{
|
||||||
if (sa->sa_family == AF_INET) {
|
if (sa->sa_family == AF_INET) {
|
|
@ -1,4 +1,14 @@
|
||||||
/* This file was automatically generated. Do not edit! */
|
/* This file was automatically generated. Do not edit! */
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include <netdb.h>
|
||||||
int run_client(const struct prog_info *pinfo,void(*framecallback)(long));
|
int run_client(const struct prog_info *pinfo,void(*framecallback)(long));
|
||||||
int run_server(const struct prog_info *pinfo);
|
int run_server(const struct prog_info *pinfo);
|
||||||
void *get_in_addr(struct sockaddr *sa);
|
void *get_in_addr(struct sockaddr *sa);
|
Loading…
Reference in New Issue
Block a user