Skip to content

Commit

Permalink
Create Server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanu1515 committed Oct 1, 2020
1 parent f379f8b commit c7568d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UDP-Echo-Client-Server-Communication/Server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import socket
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.bind(('localhost',9999))
print('server is listening')
while True:
data =s.recvfrom(1024)
s.sendto(data[0],data[1])
s.close()

0 comments on commit c7568d9

Please sign in to comment.