prepAccept

Prepares accept4(2) operation.

nothrow @nogc
void
prepAccept
(
ADDR
)
(
ref SubmissionEntry entry
,
int fd
,
ref ADDR addr
,
ref socklen_t addrlen
,
AcceptFlags flags = AcceptFlags.NONE
)

Parameters

entry
Type: SubmissionEntry

SubmissionEntry to prepare

fd
Type: int

socket file descriptor

addr
Type: ADDR

reference to one of sockaddr structires to be filled with accepted client address

addrlen
Type: socklen_t

reference to addrlen field that would be filled with accepted client address length

Note: Available from Linux 5.5

See Also

accept4(2)` for the general description of the related system call.

Meta