1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/*
* dbgcomm.h
*
* This file defines the functions used to establish connections between
* the debugging proxy and target backend.
*
* Copyright (c) 2004-2024 EnterpriseDB Corporation. All Rights Reserved.
*
* Licensed under the Artistic License v2.0, see
* https://opensource.org/licenses/artistic-license-2.0
* for full details
*/
#ifndef DBGCOMM_H
#define DBGCOMM_H
#if (PG_VERSION_NUM >= 170000)
#define BackendId ProcNumber
#define MyBackendId MyProcNumber
#define InvalidBackendId INVALID_PROC_NUMBER
#endif
extern void dbgcomm_reserve(void);
extern int dbgcomm_connect_to_proxy(int proxyPort);
extern int dbgcomm_listen_for_proxy(void);
extern int dbgcomm_listen_for_target(int *port);
extern int dbgcomm_accept_target(int sockfd, int *targetPid);
extern int dbgcomm_connect_to_target(BackendId targetBackend);
#endif
|