这个跟socket重用有关系吗 [解决办法] TransmitFile(hSocket .....) hSocket Handle to a connected socket. The TransmitFile function will transmit the file data over this socket. The socket specified by hSocket must be a connection-oriented socket; the TransmitFile function does not support datagram sockets. Sockets of type SOCK_STREAM, SOCK_SEQPACKET, or SOCK_RDM are connection-oriented sockets hSocket的类型你是怎么设置的呀? [解决办法]
Windows TCP reverts to a TIME_WAIT state subsequent to the closing of a connection. While in the TIME_WAIT state, a socket pair cannot be re-used. The TIME_WAIT period is configurable by modifying the following DWORD registry setting that represents the TIME_WAIT period in seconds.