File: dbgcomm.h

package info (click to toggle)
pldebugger 1%3A1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 320 kB
  • sloc: ansic: 3,176; sql: 226; makefile: 34; sh: 1
file content (31 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (2)
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