Логичная структура пакетов без магических чисел
This commit is contained in:
19
src/main/java/io/g365sfu/net/Incoming.java
Normal file
19
src/main/java/io/g365sfu/net/Incoming.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package io.g365sfu.net;
|
||||
|
||||
public class Incoming {
|
||||
|
||||
public static final byte HANDSHAKE_OK = (byte) 0x01;
|
||||
|
||||
public static final byte HANDSHAKE_FAILURE = (byte) 0xFF;
|
||||
|
||||
public static final byte CONNECTION_ALIVE = (byte) 0xAE;
|
||||
|
||||
public static final byte ICE_CANDIDATE = (byte) 0x04;
|
||||
|
||||
public static final byte SDP_OFFER = (byte) 0x08;
|
||||
|
||||
public static final byte SDP_ANSWER = (byte) 0x05;
|
||||
|
||||
public static final byte ROOM_CREATE= (byte) 0x02;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user