TClientSocket原装的比较好,用的比较熟
TTcpClient封装的比较简单相对TClientSocket,
TPowerSock Fastnet的东东,没原码,懒的去用
TIDTCPClient没用过
timeout只有send timeout设置:
timeout := 1000; //1 second
if not ClientSocket1.Active then Exit;
winsock.setsockopt(ClientSocket1.Socket.SocketHandle, SOL_SOCKET, SO_SNDTIMEO,
PChar(@timeout), SizeOf(timeout));
没有connect timeout(windows,linux好像有)