Difference between revisions of "TWSocket.Addr"

From Overbyte
Jump to navigation Jump to search
m
Line 7: Line 7:
 
=== Client ===
 
=== Client ===
  
The host to connect to. It can be a dotted IP address or a hostname. If it is a dotted IP address then [[TWSocket.Connect | Connect]] will return immediatly, if it is a hostname it will block, so [[TWSocket.DNSLookUp | DNSLookUp]] is perferable.
+
The host to connect to. It can be a dotted IP address or a hostname. If it is a dotted IP address then [[TWSocket.Connect | Connect]] will return immediatly, if it is a hostname it will block until the hostname is resolved, so [[TWSocket.DNSLookUp | DNSLookUp]] is perferable.
  
 
=== Server ===
 
=== Server ===

Revision as of 14:51, 19 February 2006

Definition

property Addr: string;

Description

Client

The host to connect to. It can be a dotted IP address or a hostname. If it is a dotted IP address then Connect will return immediatly, if it is a hostname it will block until the hostname is resolved, so DNSLookUp is perferable.

Server

The interface to listen on. 0.0.0.0 means all interfaces. Note that for a TCP server the use of TWSocketServer is preferable.

Example

Best practices

How to