java - How to send Socket details through a Socket -
i developing java application in need pass details of socket object remotely connected computer through socket... tried passing socket object in object output stream. "socket" not "serializable" didn't work... can me please? or tell me whether possible or not...
thank you...
you have solution @ hand.
if (the server) have 2 opened sockets, 1 , b have is:
read send b , read b send a.
when socket or socket b closed (or has error) (the server) close both socket , conversation over. deal scenario, need use select or non-blocking mechanism see socket has data read , act accordingly. recommended use separate thread job, server free attend more clients.
Comments
Post a Comment