On Sat, 20 Sept 2025 at 16:37, Owen Thomas <[email protected]> wrote:
> So, my question is this: How do I transmit and receive data over sockets > with Fory? How does 'Fory facilitate the communication of binary data over > the sockets in general, and how does one use the Java Fory API to do this. > Maybe this is making things too complex, but thinking about this a little more, I am wondering if, for Java, there might be, say, an input stream reader: call it ForyInputStreamReader that could wrap a socket's InputStream. This could do all the decoding of the Fory metadata and ensure the input stream conformed to what Fory is expecting. So, the syntax might be: Fory fory=...; Socket socket=...; SomeClass cls=new ForyInputStreamReader(fory,socket.getInputStream(),SomeClass.class).read(); I think something like this would be perfect for what I need. Let me know if you have anything like this... Owen.
