creates a new , global message id for a new coap message concode_field_sep BasicCoapChannelManager instance concode_elem_sep HashMap<Integer,SocketInformation> socketMap concode_elem_sep int globalMessageId concode_elem_sep Logger logger concode_elem_sep CoapSocketHandler socketHandler concode_elem_sep CoapServer serverListener concode_field_sep void createServerListener concode_elem_sep CoapServerChannel createServerChannel concode_elem_sep CoapChannelManager getInstance concode_elem_sep void setMessageId concode_elem_sep void initRandom concode_elem_sep CoapClientChannel connect
int function ( ) { if ( globalMessageId < Constants . MESSAGE_ID_MAX ) { ++ globalMessageId ; } else globalMessageId = Constants . MESSAGE_ID_MIN ; return globalMessageId ; }