Difference between revisions of "TWSocket.Create"

From Overbyte
Jump to navigation Jump to search
(first entry)
 
 
Line 7: Line 7:
 
== Description ==
 
== Description ==
  
'''Create''' creates a new unconnected socket with some defaults set. AOwner is where the Socket component lives in, but may also be nil if the socket is created non-visually.
+
'''Create''' creates a new unconnected socket with some defaults set. AOwner is usually the form the Socket component is placed on, but may also be nil if the socket is created non-visually. If an owner is specified it will be responsible for freeing the component when he himself gets freed.
  
 
== Example ==
 
== Example ==

Latest revision as of 15:06, 3 February 2019

Main page -> ICS component reference -> TWSocket -> Create

Definition

constructor Create(AOwner:TComponent);

Description

Create creates a new unconnected socket with some defaults set. AOwner is usually the form the Socket component is placed on, but may also be nil if the socket is created non-visually. If an owner is specified it will be responsible for freeing the component when he himself gets freed.

Example

Best practices

How to