Skip to content

Commit

Permalink
Working on RAW socket.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccie18643 committed Dec 2, 2024
1 parent d064a90 commit 0b020b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pytcp/socket/raw__socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ def __init__(
case AddressFamily.INET4:
self._local_ip_address = Ip4Address()
self._remote_ip_address = Ip4Address()
case _:
raise ValueError(
f"Invalid address family: {self._address_family}"
)

self._local_port = int(ip_proto)
self._remote_port = 0
Expand Down

0 comments on commit 0b020b8

Please sign in to comment.