MCPcopy Index your code
hub / github.com/secdev/scapy / __init__

Method __init__

scapy/supersocket.py:508–512  ·  view source on GitHub ↗
(self, sock, basecls=None)

Source from the content-addressed store, hash-verified

506 desc = "StreamSocket that doesn't use MSG_PEEK"
507
508 def __init__(self, sock, basecls=None):
509 # type: (socket.socket, Optional[Type[Packet]]) -> None
510 from scapy.sessions import TCPSession
511 self.sess = TCPSession(app=True)
512 super(StreamSocketPeekless, self).__init__(sock, basecls)
513
514 # 65535, the default value of x is the maximum length of a TLS record
515 def recv(self, x=None, **kwargs):

Callers

nothing calls this directly

Calls 2

TCPSessionClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected