aboutsummaryrefslogtreecommitdiff
path: root/portal/tcp/portal_tcp.ml
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-25 14:19:39 +0200
committerClombrong <cromblong@egregore.fun>2025-06-25 14:19:39 +0200
commit8265439154737933d7103a7c2f0a871b475876af (patch)
tree90ee754e4bf2b95eb32d669423b6c360d98501ab /portal/tcp/portal_tcp.ml
parent08d7c8435d487e85e37e8d7264572f4cc20b4c61 (diff)
feat(portal_tcp): add connect function
Diffstat (limited to 'portal/tcp/portal_tcp.ml')
-rw-r--r--portal/tcp/portal_tcp.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/portal/tcp/portal_tcp.ml b/portal/tcp/portal_tcp.ml
index 37a3065..cfe35dd 100644
--- a/portal/tcp/portal_tcp.ml
+++ b/portal/tcp/portal_tcp.ml
@@ -3,3 +3,6 @@ let xmpp_port (_domain : string) : int = 5222
Currently, it falls back to 5222 (always), but should use SRV records in the near
future. *)
+
+let connect (domain : string) =
+ xmpp_port domain |> string_of_int |> print_endline