package com.spotify.netty4.handler.codec.zmtp;

/**
 * Enumerates the different socket types, used to make sure that connecting both peers in a socket
 * pair has compatible socket types.
 *
 * Please note that the types needs to be the same order as defined in the ZMTP/2.0 spec so that
 * ordinal() can be used to extract serialize the type.
 */
public enum ZMTPSocketType {
  PAIR,
  SUB,
  PUB,
  REQ,
  REP,
  DEALER,
  ROUTER,
  PULL,
  PUSH
}

@@ -374,42 +374,76 @@
 e %7B%0A
+%0A
   PAIR
-,%0A  SUB,%0A  PUB
+(false),%0A  SUB(false),%0A  PUB(false)
 ,%0A  REQ
+(true)
 ,%0A  REP
+(true)
 ,%0A  
@@ -448,16 +448,22 @@
   DEALER
+(true)
 ,%0A  ROUT
@@ -468,16 +468,22 @@
 UTER
+(true)
 ,%0A  PULL
 ,%0A  
@@ -482,15 +482,22 @@
 PULL
+(false)
 ,%0A  PUSH
 %0A%7D%0A
@@ -493,11 +493,196 @@
 ,%0A  PUSH
+(false);%0A%0A  private final boolean enveloped;%0A%0A  ZMTPSocketType(final boolean enveloped) %7B%0A    this.enveloped = enveloped;%0A  %7D%0A%0A  public boolean isEnveloped() %7B%0A    return enveloped;%0A  %7D
 %0A%7D%0A

add isEnveloped to socket type