THookSocketReason

type THookSocketReason = (HR_ResolvingBegin, HR_ResolvingEnd, HR_SocketCreate, HR_SocketClose, HR_Bind, HR_Connect, HR_CanRead, HR_CanWrite, HR_Listen, HR_Accept, HR_ReadCount, HR_WriteCount);

Unit
blcksock

Description
Types of OnStatus events:

HR_ResolvingBegin - Resolving is begin. Resolved IP and port is in parameter in format like: 'localhost.somewhere.com:25'.

HR_ResolvingEnd - Resolving is done. Resolved IP and port is in parameter in format like: 'localhost.somewhere.com:25'. It is always same as in HR_ResolvingBegin!

HR_SocketCreate - Socket created by CreateSocket method.

HR_SocketClose - Socket closed by CloseSocket method.

HR_Bind - Socket binded to IP and Port. Binded IP and Port is in parameter in format like: 'localhost.somewhere.com:25'.

HR_Connect - Socket connected to IP and Port. Connected IP and Port is in parameter in format like: 'localhost.somewhere.com:25'.

HR_CanRead - Called when CanRead method is used with True result.

HR_CanWrite - Called when CanWrite method is used with True result.

HR_Listen - Socket is swithed to Listen mode. (TCP socket)

HR_Accept - Socket Accepting client connection. (TCP socket)

HR_ReadCount - report count of bytes readed from socket. Number is in parameter string. If you need is in integer, you must use StrToInt function!

HR_WriteCount - report count of bytes writed to socket. Number is in parameter string. If you need is in integer, you must use StrToInt function!


See also:
THookSocketStatus