Difference between revisions of "TWSocket"

From Overbyte
Jump to navigation Jump to search
Line 16: Line 16:
 
| valign="top" | [[TWSocket.AllSent | AllSent]] ||||
 
| valign="top" | [[TWSocket.AllSent | AllSent]] ||||
 
|-
 
|-
| valign="top" | [[TWSocket.BufSize | BufSize]] ||||
+
| valign="top" | [[TWSocket.BufSize | BufSize]] |||| Size in byte for send dynamic buffer cell.
 
|-
 
|-
 
| valign="top" | [[TWSocket.ComponentOptions | ComponentOptions]] ||||
 
| valign="top" | [[TWSocket.ComponentOptions | ComponentOptions]] ||||
Line 26: Line 26:
 
| valign="top" | [[TWSocket.FlushTimeout | FlushTimeout]] ||||
 
| valign="top" | [[TWSocket.FlushTimeout | FlushTimeout]] ||||
 
|-
 
|-
| valign="top" | [[TWSocket.Handle | Handle]] ||||
+
| valign="top" | [[TWSocket.Handle | Handle]] |||| Handle for the underlaying hidden window.
 
|-
 
|-
 
| valign="top" | [[TWSocket.HSocket | HSocket]] |||| Winsock handle for underlaying socket.
 
| valign="top" | [[TWSocket.HSocket | HSocket]] |||| Winsock handle for underlaying socket.

Revision as of 19:23, 24 February 2006

Main page -> ICS component reference -> TWSocket

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 Client: The host to connect to. Server: The interface to listen on.
AllSent
BufSize Size in byte for send dynamic buffer cell.
ComponentOptions
DnsResult
DnsResultList
FlushTimeout
Handle Handle for the underlaying hidden window.
HSocket Winsock handle for underlaying socket.
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

Abort Align test
Accept
CancelDnsLookup
Close
CloseDelayed
Connect
Create
DeleteBufferedData
Destroy
DnsLookup
Dup
Flush
GetPeerAddr
GetPeerName
GetPeerPort
GetSockName
GetXAddr
GetXPort
Listen
MessageLoop
MessagePump
Pause
PeekData
ProcessMessage
ProcessMessages
PutDataInSendBuffer
PutStringInSendBuffer
Receive
ReceiveFrom
ReceiveStr
Release
Resume
ReverseDnsLookup
Send
SendStr
SendTo
SetLingerOption
Shutdown
TimerClear
TimerCmp
TimerIsSet
ThreadAttach
ThreadDetach
WaitForClose Align test

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, use exception handling instead.
OnLineLimitExceeded Denial of service attack
OnMessagePump To call your own message pump.
OnSendData Winsock send buffer is empty, will be filled again by internal send buffer if still data available to send.
OnSessionAvailable Client connected to this server.
OnSessionClosed Socket has closed.
OnSessionConnected Session to host etablished.
OnSocksAuthState
OnSocksConnected
OnSocksError

How to

Title



ICS Components Reference