lionfaggot Posted February 5, 2011 Share Posted February 5, 2011 made an irc bot and i wanted to have it check in the main loop if the socket died, i know ping pong works but suppose the bot just excess floods or something how do i know if the socket just suddenly disappears? i tried using @error but that didnt do anything lol Link to comment Share on other sites More sharing options...
lionfaggot Posted February 6, 2011 Author Share Posted February 6, 2011 anyone? Link to comment Share on other sites More sharing options...
lionfaggot Posted February 6, 2011 Author Share Posted February 6, 2011 anyone? Link to comment Share on other sites More sharing options...
jvanegmond Posted February 6, 2011 Share Posted February 6, 2011 After a TCPRecv check @error. If the connection is dropped from the other side, @error will be set non-zero. This is well documented, so your best bet for good examples is the help file. github.com/jvanegmond Link to comment Share on other sites More sharing options...
lionfaggot Posted February 6, 2011 Author Share Posted February 6, 2011 thanks, shouldve known,, seemed obvious. it seems like its always something stupidly simple 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