When working with Raw sockets in ktor (im doing so...
# ktor
c
When working with Raw sockets in ktor (im doing some local network programming)... why does ktor not have a flow-able representation of incoming messages? Seems like that would be more of an idiomatic approach.
a
Because flows are typically cold.
c
interesting point. so i guess in this case, you're making the point that incoming messages are hot. good point! i'm working on a small layer on top of raw sockets so I'm trying to abstract away some of the socket code to make it a bit easier to work with and so i think i might try to make it a flow myself
a
I believe Ktor uses Channels. These are the correct abstraction for hot data.
c
Does it? maybe im missing something there. i dont see anything about channels
a
c
thanks for teaching ❤️
j
c
Thanks! Will give that a read tonight.