mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 15:43:24 +00:00
cleanup xio-unix.c: merged classic with abstract functions; names, ...
This commit is contained in:
parent
d70b8963aa
commit
b6c2d46008
6 changed files with 209 additions and 434 deletions
22
xioopen.c
22
xioopen.c
|
@ -1,5 +1,5 @@
|
|||
/* source: xioopen.c */
|
||||
/* Copyright Gerhard Rieger 2001-2007 */
|
||||
/* Copyright Gerhard Rieger 2001-2008 */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
/* this is the source file of the extended open function */
|
||||
|
@ -106,7 +106,7 @@ const struct addrname addressnames[] = {
|
|||
#endif
|
||||
#endif /* WITH_RAWIP */
|
||||
#if WITH_UNIX
|
||||
{ "local", &addr_unix_connect },
|
||||
{ "local", &xioaddr_unix_connect },
|
||||
#endif
|
||||
#if WITH_FILE
|
||||
{ "open", &addr_open },
|
||||
|
@ -231,19 +231,19 @@ const struct addrname addressnames[] = {
|
|||
{ "udp6-sendto", &addr_udp6_sendto },
|
||||
#endif
|
||||
#if WITH_UNIX
|
||||
{ "unix", &addr_unix_client },
|
||||
{ "unix-client", &addr_unix_client },
|
||||
{ "unix-connect", &addr_unix_connect },
|
||||
{ "unix", &xioaddr_unix_client },
|
||||
{ "unix-client", &xioaddr_unix_client },
|
||||
{ "unix-connect", &xioaddr_unix_connect },
|
||||
#endif
|
||||
#if WITH_UNIX && WITH_LISTEN
|
||||
{ "unix-l", &addr_unix_listen },
|
||||
{ "unix-listen", &addr_unix_listen },
|
||||
{ "unix-l", &xioaddr_unix_listen },
|
||||
{ "unix-listen", &xioaddr_unix_listen },
|
||||
#endif
|
||||
#if WITH_UNIX
|
||||
{ "unix-recv", &addr_unix_recv },
|
||||
{ "unix-recvfrom", &addr_unix_recvfrom },
|
||||
{ "unix-send", &addr_unix_sendto },
|
||||
{ "unix-sendto", &addr_unix_sendto },
|
||||
{ "unix-recv", &xioaddr_unix_recv },
|
||||
{ "unix-recvfrom", &xioaddr_unix_recvfrom },
|
||||
{ "unix-send", &xioaddr_unix_sendto },
|
||||
{ "unix-sendto", &xioaddr_unix_sendto },
|
||||
#endif
|
||||
#else /* !0 */
|
||||
# if WITH_INTEGRATE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue