| Path: | lib/mues/listeners/socketlistener.rb (CVS) |
| Last Update: | Sat Aug 18 22:54:10 -0700 2007 |
This file contains the MUES::SocketListener class: A MUES::Listener derivative for raw TCP/IP socket connections.
use 'mues/Listener'
# Bind a listener to port 4848 on all interfaces
sockListener = MUES::Listener::create 'Socket',
'mues-socket',
'bind-port' => 4848,
'bind-addr' => '0.0.0.0',
# Bind to port 1248 on one IP, and use tcp_wrappers for access control.
sockListener = MUES::Listener::create 'Socket',
'mues-socket',
'bind-port' => 1248,
'bind-addr' => '10.2.1.13',
'use-wrappers' => true,
'wrap-ident-lookup' => true,
'wrap-ident-timeout' => 15
$Id: socketlistener.rb 1206 2004-05-09 21:25:11Z deveiant $
Copyright (c) 2000-2003 The FaerieMUD Consortium. All rights reserved.
This module is free software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See language.perl.com/misc/Artistic.html)
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.