Files
simplexmq/apps/smp-agent/Main.hs
T
2021-01-03 10:42:41 +00:00

28 lines
592 B
Haskell

{-# LANGUAGE DuplicateRecordFields #-}
module Main where
import Simplex.Messaging.Agent (runSMPAgent)
import Simplex.Messaging.Agent.Env.SQLite
import Simplex.Messaging.Agent.ServerClient
cfg :: AgentConfig
cfg =
AgentConfig
{ tcpPort = "5224",
tbqSize = 16,
connIdBytes = 12,
dbFile = "smp-agent.db",
smpTcpPort = "5223",
smpConfig =
ServerClientConfig
{ tbqSize = 16,
corrIdBytes = 4
}
}
main :: IO ()
main = do
putStrLn $ "SMP agent listening on port " ++ tcpPort (cfg :: AgentConfig)
runSMPAgent cfg