Beispiel #1
0
#    Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public
#    License along with this library; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

import sys
sys.path.append('..')

from beepy.profiles import echoprofile
from beepy.profiles import saslotpprofile
from beepy.transports.tcp import SASLServerFactory

from twisted.application import internet, service

# Put this here so we override twisted's logging
import logging
from beepy.core import debug

log = debug.log

factory = SASLServerFactory()
factory.addProfile(echoprofile)
factory.addProfile(saslotpprofile)

application = service.Application('saslanonybeep')
serviceCollection = service.IServiceCollection(application)
internet.TCPServer(1976, factory).setServiceParent(serviceCollection)

Beispiel #2
0
#    Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public
#    License along with this library; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


import sys
sys.path.append('..')

from beepy.profiles import echoprofile
from beepy.profiles import saslanonymousprofile
from beepy.transports.tcp import SASLServerFactory

from twisted.application import internet, service

# Put this here so we override twisted's logging
import logging
from beepy.core import debug

log = debug.log

factory = SASLServerFactory()
factory.addProfile(echoprofile)
factory.addProfile(saslanonymousprofile)

application = service.Application('saslanonybeep')
serviceCollection = service.IServiceCollection(application)
internet.TCPServer(1976, factory).setServiceParent(serviceCollection)