public static ZContext shadow ( ZContext ctx ) { ZContext context = new ZContext ( ctx . context , false , ctx . ioThreads ) ; context . linger = ctx . linger ; context . sndhwm = ctx . sndhwm ; context . rcvhwm = ctx . rcvhwm ; context . pipehwm = ctx . pipehwm ; return context ; }
Creates new shadow context . Shares same underlying org . zeromq . Context instance but has own list of managed sockets io thread count etc .