I want to use both socket type , string and object stream.
sometime the socket will receive the data consists of String and sometime object.
It has to be just one port used.
I have to know the data in socket is String or object stream.
Is there way to check it out?
How can I solve this out?