-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6486b5
commit a6a36ce
Showing
5 changed files
with
93 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
&Пластилин Перем ПарсерЗапросов; | ||
&Пластилин Перем Настройки; | ||
Перем ВебСервер; | ||
|
||
&Желудь | ||
Процедура ПриСозданииОбъекта() | ||
|
||
КонецПроцедуры | ||
|
||
Процедура Старт() Экспорт | ||
|
||
ВебСервер = Новый ВебСервер(Настройки.Порт); | ||
|
||
ВебСервер.ДобавитьОбработчикЗапросов(ПарсерЗапросов, "ОбработатьВходящийКонтекст"); | ||
|
||
ВебСервер.Запустить(); | ||
ВебСервер.ЖдатьОстановки(); | ||
|
||
// СлушательПорта.Запустить(); | ||
|
||
// Пока СлушательПорта.Активен() Цикл | ||
|
||
// Соединение = СлушательПорта.ОжидатьСоединения(); | ||
|
||
// МассивПараметров = Новый Массив(); | ||
// МассивПараметров.Добавить(Соединение); | ||
|
||
// ФоновыеЗадания.Выполнить(ОбработчикСоединений, "Обработать", МассивПараметров); | ||
|
||
// КонецЦикла | ||
|
||
КонецПроцедуры |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters