Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ccie18643 committed Sep 16, 2024
1 parent f6d042e commit b37577b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pytcp/socket/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ def __repr__(self) -> str:

return self.__str__()

# BSD socket API methods.

@property
def id(
self,
Expand Down
4 changes: 4 additions & 0 deletions pytcp/socket/tcp__socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ def _get_ip_addresses(

return local_ip_address, remote_ip_address

###############################
## BSD socket API methods. ##
###############################

def bind(self, address: tuple[str, int]) -> None:
"""
Bind the socket to local address.
Expand Down
4 changes: 4 additions & 0 deletions pytcp/socket/udp__socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ def _get_ip_addresses(

return local_ip_address, remote_ip_address

###############################
## BSD socket API methods. ##
###############################

def bind(self, address: tuple[str, int]) -> None:
"""
Bind the socket to local address.
Expand Down

0 comments on commit b37577b

Please sign in to comment.