ObjectOutputStream more than one on same socket
I'm still new to sockets so bare with me, here is what I'm trying to do. I have socket that sends an image constantly to a client (details in "sending images client/server sockets") but I also need to send and receive changes to the camera pan/tilt and zoom when it changes. First however, I'm trying to send the preset camera PTZ to the client for the GUI to set the existing PTZ on the camera control screen I create. Can I use the same socket and object output or do I need to create a new one?
Re: ObjectOutputStream more than one on same socket
Are you asking if you can interleave output on the one output stream?
Can the reader use instanceOf to detect what kind of object it has read?
Seems like a separate communication socket would simplify the app.
Re: ObjectOutputStream more than one on same socket
I'll try instance of thanks. That just means having the web service data read seperatly before I create the output stream and then checking if it's an instance of an ImageIO probably.