Out-of-band data or something like that

Mar 18, 2014 at 7:52 PM
Edited Mar 18, 2014 at 8:49 PM
Is it possible to implement a server which handles two commands concurrent in same session. If not possible, how can I cancel a long running request without disconnecting. While I was using plain sockets, I could send an out-of-band data packet to interrupt previous request.