destructor . call this to gracefully terminate context and close any managed 0mq sockets concode_field_sep int linger concode_elem_sep ZMQ.Context context concode_elem_sep boolean main concode_elem_sep List<Socket> sockets concode_elem_sep int ioThreads concode_field_sep List<Socket> getSockets concode_elem_sep ZContext shadow concode_elem_sep int getLinger concode_elem_sep boolean isMain concode_elem_sep void destroySocket concode_elem_sep void setIoThreads concode_elem_sep Socket createSocket concode_elem_sep void setMain concode_elem_sep int getIoThreads concode_elem_sep void setLinger concode_elem_sep void setContext concode_elem_sep Context getContext concode_elem_sep void close
void function ( ) { ListIterator < Socket > loc0 = sockets . listIterator ( ) ; while ( loc0 . hasNext ( ) ) { destroySocket ( loc0 . next ( ) ) ; } sockets . clear ( ) ; if ( isMain ( ) && context != null ) context . term ( ) ; }