z0mgItsJohn Posted January 11, 2009 Share Posted January 11, 2009 Well.. I Wanted To Know If There Was A Way I Could... Know If A "Client" Has Disconnected Without Sending It A Message... Because I'm Working On A "Packet Filter" And I Need A Way To Know If A Client Has Disconnected And In Order To Send It A Message I Have To Make The Right Packet Structure =X ~ Thanks In Advance (Even If You Can't Help, But Tried) ~ - John Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted January 11, 2009 Author Share Posted January 11, 2009 ** Bump ** I Really Need Help x_X Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
rasim Posted January 11, 2009 Share Posted January 11, 2009 This? ;In a server script $recv = TCPRecv($Connect, 2048) If @error Then MsgBox(16, "Client error", "") Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted January 11, 2009 Author Share Posted January 11, 2009 Oh.. Lol.. I Didnt Think That Would Work.. Because Under Return Value For "TcpRecv" In The Help File It Says "Return Value Success: Returns binary/string sent by the connected socket. Failure: Returns "" and set @error according to Windows API WSAGetError return. " And I Thought It Set @Error If There Was No Msg Recv'd But Thanks! It Works Like A Charm 8D Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
yucatan Posted January 14, 2009 Share Posted January 14, 2009 Oh.. Lol.. I Didnt Think That Would Work.. Because Under Return Value For "TcpRecv" In The Help File It Says"Return ValueSuccess: Returns binary/string sent by the connected socket. Failure: Returns "" and set @error according to Windows API WSAGetError return. "And I Thought It Set @Error If There Was No Msg Recv'd But Thanks! It Works Like A Charm 8Din the client u can set the func onautoitexit() when the client script closes he run that func and then close the .exeso in the onautoitexit () func u can set tcp filewritetolog $socket has been disconnecting or something liek thatu can let the clinet send something that the server know that that client is disconnected. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now