package Ġorg . jetbrains . ktor . tomcat Ċ Ċ import Ġorg . jetbrains . ktor . application .* Ċ import Ġorg . jetbrains . ktor . host .* Ċ Ċ object ĠTom cat Ġ: ĠApplication Host Factory < Tom cat Application Host > Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġcreate ( environment : ĠApplication Host Environment ) Ġ= ĠTom cat Application Host ( environment ) Ċ } Ċ Ċ @ Deprecated (" Replace Ġwith Ġ' embedded Server ( Tom cat , ĠâĢ¦ )", Ġreplace With Ġ= ĠReplace With (" embedded Server ( Tom cat , Ġport , Ġhost , Ġconfigure )", Ġ" org . jetbrains . ktor . host . embedded Server ")) Ċ fun Ġembedded Tom cat Server ( port : ĠInt Ġ= Ġ 8 0 , Ġhost : ĠString Ġ= Ġ" 0 . 0 . 0 . 0 ", Ġmain : ĠApplication . () Ġ-> ĠUnit ): ĠTom cat Application Host Ġ{ ĊĠĠĠ Ġreturn Ġembedded Server ( Tom cat , Ġport , Ġhost , Ġmodule Ġ= Ġmain ) Ċ } Ċ