/*
This file is part of udpxd.
Copyright (C) 2015 T.v.Dein.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
You can contact me by mail: .
*/
#ifndef _HAVE_NET_H
#define _HAVE_NET_H
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "client.h"
#define MAX_BUFFER_SIZE 65535
extern client_t *clients;
extern int VERBOSE;
int fill_set(fd_set *fds);
int get_sender(fd_set *fds);
int bindsocket( char* ip, int port );
void handle_inside(int inside, char *bindip, struct sockaddr_in *dst);
void handle_outside(int inside, int outside);
#endif