System.Net.Socket.TSocket Methods
InheritedProtected
| Accept | public | Blocks the caller of this function until a client connects, and then returns a new instance of Socket.TSocket. |
| AfterConstruction | public | Responds after the last constructor has executed. |
| BeforeDestruction | public | Responds before the first destructor executes. |
| BeginAccept | public | Accepts an incoming connection asynchronously. |
| BeginConnect | public | Establishes a connection to the specified endpoint asynchronously. |
| BeginReceive | public | Obtains data sent from the connected endpoint. |
| BeginReceiveFrom | public | Receives data from a remote socket asynchronously. |
| BeginSend | public | Sends the specified data to the connected endpoint asynchronously. |
| BeginSendTo | public | Sends the specified data to the specified endpoint asynchronously. |
| Bind | public | Associates your socket with a local adapter (either physical hardware or a virtual device) in the specified endpoint or local port. |
| CheckDisposed | protected | This method is deprecated. |
| ClassInfo | public | Returns a pointer to the run-time type information (RTTI) table for the object type. |
| ClassName | public | Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument). |
| ClassNameIs | public | Determines whether an object is of a specific type. |
| ClassParent | public | Returns the type of the immediate ancestor of a class. |
| ClassType | public | Returns the class reference for the object's class. |
| CleanupInstance | public | Performs finalization on long strings, variants, and interface variables within a class. |
| Close | public | Shuts down the communications channel. |
| Connect | public | Establishes a connection to the specified endpoint. |
| ConvertFlags | protected | Converts the provided set of socket flags to an Integer value. |
| Create | public | Creates an instance of TSocket. |
| CreateSocket | protected | Creates a socket and returns a socket handle. |
| DefaultHandler | public | Provides the interface for a method that processes message records. |
| Destroy | public | Destroys this instance of TSocket. |
| Dispatch | public | Calls message-handling methods for the object, based on the contents of the Message parameter. |
| DisposeOf (deprecated) | public | DisposeOf forces the execution of the destructor code in an object. |
| DoBind | protected | Binds your socket to the local IP address that you define when you create your socket. |
| DoConnect | protected | Connects your socket to the remote IP address that you specified when you created your socket. |
| DoListen | protected | Binds your socket to a local IP address and configures the socket to begin accepting incoming connections. |
| EndAccept | public | Accepts an incoming connection using the specified result returned by a previous call to BeginAccept. |
| EndConnect | public | Establishes a connection to a previously specified endpoint using the specified result returned by a previous call to BeginConnect. |
| EndReceiveBytes | public | Obtains data sent from the connected endpoint as bytes. |
| EndReceiveBytesFrom | public | Receives an array of bytes from a remote socket using the specified result returned by a previous call to BeginReceiveFrom. |
| EndReceiveString | public | Obtains data sent from the connected endpoint as a string. |
| EndReceiveStringFrom | public | Receives a string from a remote socket using the specified result returned by a previous call to BeginReceiveFrom. |
| EndSend | public | Sends previously specified data to the connected endpoint using the specified result returned by a previous call to BeginSend. |
| EndSendTo | public | Sends previously specified data to a previously specified endpoint using the specified result returned by a previous call to BeginSendTo. |
| Equals | public | Checks whether the current instance and the Obj parameter are equal. |
| FieldAddress | public | Returns the address of a published object field. |
| Free | public | Destroys an object and frees its associated memory, if necessary. |
| FreeInstance | public | Deallocates memory allocated by a previous call to the NewInstance method. |
| GetClientSocket | protected | Creates an instance of TSocket that your server socket or your listening socket can use for communicating with a connected client and returns the created TSocket instance. |
| GetDisposed | protected | Getter for the Disposed property. |
| GetHashCode | public | Returns an integer containing the hash code. |
| GetInterface | public | Retrieves a specified interface. |
| GetInterfaceEntry | public | Returns the entry for a specific interface implemented in a class. |
| GetInterfaceTable | public | Returns a pointer to a structure containing all of the interfaces implemented by a given class. |
| InheritsFrom | public | Determines the relationship of two object types. |
| InitInstance | public | Initializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer. |
| InitSocket | protected | Returns a sockaddr_in structure configured based on the specified parameters. |
| InstanceSize | public | Returns the size in bytes of each instance of the object type. |
| Listen | public | Configures the socket to begin accepting incoming connections. |
| ListenBroadcast | public | Binds your socket to the specified port or endpoint and configures your socket for receiving sub-net broadcasts. |
| LookupName | public | Performs a DNS lookup of the specified domain name and returns a matching IP address. If the DNS does not return a match, the fields of the returned IP address are empty. |
| LookupService | public | Returns a port number matching the specified service name. |
| MethodAddress | public | Returns the address of a class method by name. |
| MethodName | public | Returns the name of a class method by address. |
| NewInstance | public | Allocates memory for an instance of an object type and returns a pointer to that new instance. |
| OpenBroadcast | public | Configures your socket to send local sub-net broadcasts to the specified port or endpoint. |
| QualifiedClassName | public | Returns the qualified name of the class. |
| Receive | public | Obtains data sent from the connected endpoint. |
| ReceiveFrom | public | Receives data from a remote socket. |
| ReceiveLength | public | Returns the number of available, pending bytes. |
| ReceiveString | public | Returns the received data as a string encoded using the specified character encoding. |
| ReceiveStringFrom | public | Receives a string from either the specified endpoint or the configured endpoint. |
| SafeCallException | public | Handles exceptions in methods declared using the safecall calling convention. |
| Select | public | Check multiple socket instances for read or write readiness or error state. |
| Send | public | Sends the specified data to the connected endpoint. |
| SendTo | public | Sends the specified data to the specified endpoint. |
| ToString | public | Returns a string containing the class name. |
| UnitName | public | Returns the name of the unit where the class is defined. |
| UnitScope | public | Returns the class's unit scope. |
| WaitForData | protected | Returns only once your socket receives data from a remote host. |