Хранилища Subversion pytwidcpp

Редакция

Редакция 4 | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 4 Редакция 6
Строка 21... Строка 21...
21
21
22
22
23
# this connects the protocol to a server runing on port 8000
23
# this connects the protocol to a server runing on port 8000
24
def main():
24
def main():
25
    f = NMDCFactory()
25
    f = NMDCFactory()
26
    reactor.connectTCP("verlihub.org", 4111 , f)
26
    reactor.connectTCP("127.0.0.1", 31337 , f)
27
    reactor.run()
27
    reactor.run()
28
28
29
# this only runs if the module was *not* imported
29
# this only runs if the module was *not* imported
30
if __name__ == '__main__':
30
if __name__ == '__main__':
31
    main()
31
    main()