[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:
Robert Sipka
2019-03-18 11:00:15 +01:00
committed by GitHub
parent fbd734ed28
commit 3d3e6fdf58
10 changed files with 328 additions and 35 deletions
+1 -2
View File
@@ -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