Difference between revisions of "TWSocket"
Jump to navigation
Jump to search
(→Events) |
|||
Line 204: | Line 204: | ||
{| | {| | ||
− | | width="140" valign="top" | [[TWSocket.OnBgException | OnBgException]] |||| | + | | width="140" valign="top" | [[TWSocket.OnBgException | OnBgException]] |||| Background exception occured. |
|- | |- | ||
− | | valign="top" | [[TWSocket.OnChangeState | OnChangeState]] |||| | + | | valign="top" | [[TWSocket.OnChangeState | OnChangeState]] |||| State of TWSocket has changed. |
|- | |- | ||
− | | valign="top" | [[TWSocket.OnDataAvailable | OnDataAvailable]] |||| | + | | valign="top" | [[TWSocket.OnDataAvailable | OnDataAvailable]] |||| Data available in internal receive buffer. |
|- | |- | ||
− | | valign="top" | [[TWSocket.OnDataSent | OnDataSent]] |||| | + | | valign="top" | [[TWSocket.OnDataSent | OnDataSent]] |||| Internal sent buffer is completely delivered to winsock. |
|- | |- | ||
| width="90" valign="top" | [[TWSocket.OnDebugDisplay | OnDebugDisplay]] |||| | | width="90" valign="top" | [[TWSocket.OnDebugDisplay | OnDebugDisplay]] |||| | ||
|- | |- | ||
− | | valign="top" | [[TWSocket.OnDnsLookupDone | OnDnsLookupDone]] |||| | + | | valign="top" | [[TWSocket.OnDnsLookupDone | OnDnsLookupDone]] |||| [[TWSocket.DNSLookUp | DNSLookUp]] has finished. |
|- | |- | ||
− | | valign="top" | [[TWSocket.OnError | OnError]] |||| | + | | valign="top" | [[TWSocket.OnError | OnError]] |||| '''Discouraged''' |
|- | |- | ||
− | | valign="top" | [[TWSocket.OnLineLimitExceeded | OnLineLimitExceeded]] |||| | + | | valign="top" | [[TWSocket.OnLineLimitExceeded | OnLineLimitExceeded]] |||| Denial of service attack |
|- | |- | ||
− | | valign="top" | [[TWSocket.OnMessagePump | OnMessagePump]] |||| | + | | valign="top" | [[TWSocket.OnMessagePump | OnMessagePump]] |||| You can write your own message pump here |
|- | |- | ||
− | | valign="top" | [[TWSocket.OnSendData | OnSendData]] |||| | + | | valign="top" | [[TWSocket.OnSendData | OnSendData]] |||| Winsock send buffer is empty, will be filled again by internal send buffer if still data available to send. |
|- | |- | ||
| valign="top" | [[TWSocket.OnSessionAvailable | OnSessionAvailable]] |||| | | valign="top" | [[TWSocket.OnSessionAvailable | OnSessionAvailable]] |||| |
Revision as of 20:10, 19 February 2006
Main page -> ICS component reference -> TWSocket
Contents
Overview
- unit WSocket.pas
- inheritance
TWSocket component is implementing the TCP protocol described in RFC 793 and and UDP protocol described in RFC 768. Both protocols are encaptulated by the IP protocol described in RFC 791. TWSocket is used in almost every other ICS component.
TWSocket component can be used as client or a server. For its use as TCP server however TWSocketServer is encouraged because of his advanced features.
Properties
Addr | The host to connect to (client) or the interface to listen on (server). | |
AllSent | ||
BufSize | ||
ComponentOptions | ||
DnsResult | ||
DnsResultList | ||
FlushTimeout | ||
Handle | ||
HSocket | ||
IcsLogger | ||
LastError | ||
LineEcho | ||
LineEdit | ||
LineEnd | ||
LineLength | ||
LineLimit | ||
LineMode | ||
LingerOnOff | ||
LingerTimeout | ||
ListenBacklog | ||
LocalAddr | ||
LocalPort | ||
MultiCast | ||
MultiCastAddrStr | ||
MultiCastIpTTL | ||
MultiThreaded | ||
PeerAddr | ||
PeerPort | ||
Port | ||
PortNum | ||
Proto | ||
RcvdCnt | ||
RcvdCount | ||
RcvdPtr | ||
ReadCount | ||
ReqVerLow | ||
ReqVerHigh | ||
ReuseAddr | ||
SendFlags | ||
SocksAuthentication | ||
SocksLevel | ||
SocksPassword | ||
SocksPort | ||
SocksServer | ||
SocksUsercode | ||
State | ||
Terminated | ||
Text |
Methods
Events
OnBgException | Background exception occured. | |
OnChangeState | State of TWSocket has changed. | |
OnDataAvailable | Data available in internal receive buffer. | |
OnDataSent | Internal sent buffer is completely delivered to winsock. | |
OnDebugDisplay | ||
OnDnsLookupDone | DNSLookUp has finished. | |
OnError | Discouraged | |
OnLineLimitExceeded | Denial of service attack | |
OnMessagePump | You can write your own message pump here | |
OnSendData | Winsock send buffer is empty, will be filled again by internal send buffer if still data available to send. | |
OnSessionAvailable | ||
OnSessionClosed | ||
OnSessionConnected | ||
OnSocksAuthState | ||
OnSocksConnected | ||
OnSocksError |
How to