diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-08 09:25:21 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-08 09:25:21 +0800 |
commit | 337995010159041aaf52b7749b46a0c0f55288d1 (patch) | |
tree | 373af2f37ebf26ceceea125405cd4b76ab02e2f7 /servers.go | |
parent | Make Client.conn optional (diff) | |
download | meseircd-337995010159041aaf52b7749b46a0c0f55288d1.tar.gz meseircd-337995010159041aaf52b7749b46a0c0f55288d1.tar.zst meseircd-337995010159041aaf52b7749b46a0c0f55288d1.zip |
Primitive client states
Diffstat (limited to 'servers.go')
-rw-r--r-- | servers.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2,6 +2,7 @@ package main import ( "net" + "log/slog" ) type Server struct { @@ -22,6 +23,7 @@ func (server *Server) SendRaw(s string) error { // TODO: Propagate across mesh return ErrNotConnectedServer } + slog.Debug("send", "line", s, "conn", server.conn) _, err := (*server.conn).Write([]byte(s)) if err != nil { // TODO: Should shut down the netFd instead but the stdlib |