postgresql/src/include/libpq
Heikki Linnakangas 4945e4ed4a Move initialization of the Port struct to the child process
In postmaster, use a more lightweight ClientSocket struct that
encapsulates just the socket itself and the remote endpoint's address
that you get from accept() call. ClientSocket is passed to the child
process, which initializes the bigger Port struct. This makes it more
clear what information postmaster initializes, and what is left to the
child process.

Rename the StreamServerPort and StreamConnection functions to make it
more clear what they do. Remove StreamClose, replacing it with plain
closesocket() calls.

Reviewed-by: Tristan Partin, Andres Freund
Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi
2024-03-12 13:42:38 +02:00
..
auth.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
be-fsstubs.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
be-gssapi-common.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
crypt.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
hba.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
ifaddr.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
libpq-be-fe-helpers.h Make dblink interruptible, via new libpqsrv APIs. 2024-01-08 11:39:56 -08:00
libpq-be.h Move initialization of the Port struct to the child process 2024-03-12 13:42:38 +02:00
libpq-fs.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
libpq.h Move initialization of the Port struct to the child process 2024-03-12 13:42:38 +02:00
pqcomm.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
pqformat.h Remove unused 'countincludesself' argument to pq_sendcountedtext() 2024-03-04 12:56:05 +02:00
pqmq.h Replace BackendIds with 0-based ProcNumbers 2024-03-03 19:38:22 +02:00
pqsignal.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
protocol.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
sasl.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
scram.h Update copyright for 2024 2024-01-03 20:49:05 -05:00