Differences From Artifact [7c99ba232e]:
- File
src/socket_helpers.h
— part of check-in
[81d47f4398]
at
2014-01-25 19:33:57
on branch trunk
— Move socket includes and helpers to separate files
The new file socket.h includes all headers required for sockets on the
used platform, while the file socket_helpers.h defines the BSD API
functions to the platform specific functions if necessary.This cleans up the classes dealing with sockets a lot and also reduces
code duplication. (user: js, size: 2157) [annotate] [blame] [check-ins using]
To Artifact [7262da62a1]:
- File src/socket_helpers.h — part of check-in [32ad39007a] at 2014-01-26 13:32:14 on branch trunk — Include unistd.h in socket_helpers.h (user: js, size: 2178) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | * the packaging of this file. * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif #ifdef HAVE_ARPA_INET_H # include <arpa/inet.h> #endif | > > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | * the packaging of this file. * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include <unistd.h> #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif #ifdef HAVE_ARPA_INET_H # include <arpa/inet.h> #endif |
︙ | ︙ |