Update TransmitFile WSAENOTSOCK error check and fix whitespace warnings.
Update TransmitFile sent bytes to be the actual number sent instead of the attempted bytes.
Add missing apc argument to async TransmitFile.