Python Forum
my next little project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
my next little project
#5
the code i wrote:
import socket
def main(args):
    p=int(args[1])
    s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
    s.bind(('0.0.0.0',p))
    while True:
        d,ap=s.recvfrom(65536)
        s.sendto(ap[0],ap)
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
my next little project - by Skaperen - Dec-20-2016, 06:57 AM
RE: my next little project - by wavic - Dec-20-2016, 08:34 AM
RE: my next little project - by Skaperen - Dec-22-2016, 03:29 AM
RE: my next little project - by wavic - Dec-22-2016, 07:27 AM
RE: my next little project - by Skaperen - Dec-24-2016, 04:15 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020