win32file.CalculateSocketEndPointSize

int = CalculateSocketEndPointSize(socket)

Calculate how many bytes are needed for the connection endpoints data for a socket.

Parameters

socket : PySocket /int

The socket for which to determine the size.

Comments

This function allows you to determine the minumum buffer size which can be passed to win32file::AcceptEx