Difference between revisions of "TWSocketServer.Addr"
Jump to navigation
Jump to search
(→How to) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Main_Page | Main page]] -> [[ICS_Components_Reference | ICS component reference]] -> [[TWSocketServer]] -> [[TWSocketServer.Addr | Addr]] | ||
+ | |||
== Definition == | == Definition == | ||
Line 5: | Line 7: | ||
== Description == | == Description == | ||
− | The IP address of interface to listen on. | + | The IP address of interface to listen on. ''0.0.0.0'' means all interfaces. |
== Example == | == Example == | ||
Line 14: | Line 16: | ||
* Listen on multiple interfaces | * Listen on multiple interfaces | ||
− | You may listen on one interface (giving his IP address) or all interfaces (giving 0.0.0.0 as IP address). To listen to several IP addresses but not all, you have to use a TWSocketServer for each interface you want to listen to. Just use the same event handler for all your TWSocketServer components and of course always use sender argument in all those event handlers. | + | :You may listen on one interface (giving his IP address) or all interfaces (giving 0.0.0.0 as IP address). To listen to several IP addresses but not all, you have to use a TWSocketServer for each interface you want to listen to. Just use the same event handler for all your TWSocketServer components and of course always use sender argument in all those event handlers. |
Latest revision as of 17:46, 25 February 2006
Main page -> ICS component reference -> TWSocketServer -> Addr
Definition
property Addr: string;
Description
The IP address of interface to listen on. 0.0.0.0 means all interfaces.
Example
Best practices
How to
- Listen on multiple interfaces
- You may listen on one interface (giving his IP address) or all interfaces (giving 0.0.0.0 as IP address). To listen to several IP addresses but not all, you have to use a TWSocketServer for each interface you want to listen to. Just use the same event handler for all your TWSocketServer components and of course always use sender argument in all those event handlers.