aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes terminate a client in between the communication with server when a condition is met. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "terminate a client in between the communication with server when a condition is met." Watch "terminate a client in between the communication with server when a condition is met." New topic
Author

terminate a client in between the communication with server when a condition is met.

dbk kumar
Greenhorn

Joined: Feb 01, 2010
Posts: 14
how to terminate a client in between the client server communication(by socket programming) when some condition is met at server and that(server) sending a signal to terminate the client.... how do you go about it??
It would be of really great help if someone could help out..
Thank you in advance....
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19783
    
  20

How about just closing the socket in the server? Not the server socket but the socket returned by the server socket's accept() method.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Randeep Singh Arora
Greenhorn

Joined: May 14, 2010
Posts: 6
you can set response type sig_terminate(customized) from server socket end.When you receive this response from the server you need to close the client scoket and exit gracefully.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: terminate a client in between the communication with server when a condition is met.