2018-08-01 14:47:27 +02:00
|
|
|
/* Copyright (c) 2003-2004, Roger Dingledine
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2019-01-16 18:33:22 +01:00
|
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
2018-08-01 14:47:27 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
#ifndef TOR_SOCKETPAIR_H
|
|
|
|
#define TOR_SOCKETPAIR_H
|
|
|
|
|
|
|
|
#include "orconfig.h"
|
|
|
|
#include "lib/testsupport/testsupport.h"
|
|
|
|
#include "lib/net/nettypes.h"
|
|
|
|
|
|
|
|
#if !defined(HAVE_SOCKETPAIR) || defined(_WIN32) || defined(TOR_UNIT_TESTS)
|
|
|
|
#define NEED_ERSATZ_SOCKETPAIR
|
2018-08-01 15:40:02 +02:00
|
|
|
int tor_ersatz_socketpair(int family, int type, int protocol,
|
|
|
|
tor_socket_t fd[2]);
|
2018-08-01 14:47:27 +02:00
|
|
|
#endif
|
|
|
|
|
2019-06-05 15:33:35 +02:00
|
|
|
#endif /* !defined(TOR_SOCKETPAIR_H) */
|