有时当我的应用程序退出时,它侦听的UDP端口无法重用。唯一的解决方案是在重新启动应用程序之前重新启动计算机。
Netstat不显示使用UDP端口的任何应用程序。
SELECT
c.CategoryID
, c.Name
, COUNT(i.IssueID) AS TotalIssues
, AVG(DATEDIFF(MI, i.StartDate, i.ResolvedDate)) AS AvgDuration
, COUNT(CASE WHEN CONVERT(INT, i.IsOutage) = 1 THEN 1 END) AS TotalOutages
FROM
dbo.hdCategories AS c
INNER JOIN
dbo.hdIssues AS i
ON c.CategoryID = i.CategoryID
WHERE
i.StatusID = 3
GROUP BY
c.CategoryID
, c.Name
我正在使用Qt的QUdpSocket课程。