Updated to kotlin
This commit is contained in:
parent
a229b85ee7
commit
dccc46d16b
@ -13,14 +13,12 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package dorkbox.network.handshake;
|
package dorkbox.network.handshake
|
||||||
|
|
||||||
public
|
object UpgradeType {
|
||||||
class UpgradeType {
|
|
||||||
// The check is > 0, so these MUST be all > 0
|
// The check is > 0, so these MUST be all > 0
|
||||||
|
const val NONE = 1.toByte()
|
||||||
public static final byte NONE = (byte) 1;
|
const val ENCRYPT = 2.toByte()
|
||||||
public static final byte ENCRYPT = (byte) 2;
|
const val COMPRESS = 3.toByte()
|
||||||
public static final byte COMPRESS = (byte) 3;
|
const val FRAGMENTED = 4.toByte()
|
||||||
public static final byte FRAGMENTED = (byte) 4;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user