當測試兩台電腦的網路傳輸資料時,如果將其中一台網路線拔掉,ClientSocket如何判斷已經斷線, |
尚未結案
|
ORISBOY
一般會員 發表:11 回覆:7 積分:3 註冊:2004-10-25 發送簡訊給我 |
|
huwk
資深會員 發表:26 回覆:340 積分:323 註冊:2002-04-03 發送簡訊給我 |
他有evem
1.OnDisconnect
Occurs just before a client socket closes the connection to a server socket. property OnDisconnect: TSocketNotifyEvent; Description Write an OnDisconnect event handler to take specific action when the connection to a server socket is about to be terminated. OnDisconnect occurs after the value of the Active property is set to False, but before the actual connection is closed. 2.OnError
Occurs when the socket fails in making, using, or shutting down a connection. property OnError: TSocketErrorEvent; Description Write an OnError event handler to respond to errors that arise with the socket connection. Set the ErrorCode parameter to 0 if the OnError event handler successfully deals with the error condition, to prevent an ESocketError from being raised.
------
熊的學習 http://huwk.blogspot.com |
Ktop_Robot
站務副站長 發表:0 回覆:3511 積分:0 註冊:2007-04-17 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |