Skip to content

Commit

Permalink
Created UDP sockets (#36)
Browse files Browse the repository at this point in the history
* Created UDP Sockets

* Addressed Comments

* Added send() function and override recv() function in client_socket.py, addressed minor changes in socket_wrapper.py

* Made requested changes

* Updated docstrings
  • Loading branch information
HermanG05 authored and maxlou05 committed Sep 1, 2024
1 parent 08c1a2f commit 44afa81
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion network/modules/UDP/client_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def create(
socket_instance.settimeout(connection_timeout)
server_address = (host, port)
return True, UdpClientSocket(cls.__create_key, socket_instance, server_address)

except TimeoutError as e:
print(f"Connection timed out: {e}")

Expand Down
1 change: 0 additions & 1 deletion network/modules/UDP/socket_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,4 @@ def get_socket(self) -> socket.socket:
"""
Getter for the underlying socket objet.
"""

return self.__socket

0 comments on commit 44afa81

Please sign in to comment.