29.12.2011 - license GPLv3

This commit is contained in:
peri4
2011-12-29 12:25:17 +03:00
parent f141bab1c8
commit 92691981fb
56 changed files with 1830 additions and 59 deletions

View File

@@ -1,19 +1,38 @@
/*
PIP - Platform Independent Primitives
Ethernet, UDP
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
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 <http://www.gnu.org/licenses/>.
*/
#ifndef PIETHERNET_H
#define PIETHERNET_H
#include "pithread.h"
#include "pistring.h"
#ifndef WINDOWS
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# include <sys/socket.h>
#else
# ifdef CC_VC
#include <winsock.h>
# define SHUT_RDWR 2
# include <winsock.h>
# define SHUT_RDWR 2
# else
#include <winsock2.h>
# define SHUT_RDWR SD_BOTH
# include <winsock2.h>
# define SHUT_RDWR SD_BOTH
# endif
#endif