[Debugger] Create a simplified transmission layer (#2781)
It supports the raw packet sending over a TCP/IP protocol JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -15,14 +15,13 @@
|
||||
# limitations under the License.
|
||||
|
||||
import struct
|
||||
from jerry_client_tcp import Socket
|
||||
|
||||
MAX_BUFFER_SIZE = 128
|
||||
WEBSOCKET_BINARY_FRAME = 2
|
||||
WEBSOCKET_FIN_BIT = 0x80
|
||||
|
||||
class WebSocket(object):
|
||||
def __init__(self, address, protocol=Socket()):
|
||||
def __init__(self, address, protocol):
|
||||
|
||||
self.data_buffer = b""
|
||||
self.protocol = protocol
|
||||
|
||||
Reference in New Issue
Block a user