1 Replies - 414 Views - Last Post: 22 March 2013 - 08:37 AM Rate Topic: -----

#1 Highest bidder  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 19
  • Joined: 23-November 12

Python networking UDP mind-blow problem

Posted 22 March 2013 - 05:21 AM

Guys i either stupid or i dont know what...

I am on my bachelor thesis and i am making a network program in Python. Everything was working fine until i tried to send a file.

Now here is the problem:

for x in packets:
	s.sendto(x, (host, port))


this wont work, it will send only 10 packets out of 16, it just stops, and i am like WTF? but this:

for x in packets:
	print "."
	s.sendto(x, (host, port))


works perfectly!!!!

I dont want to print something for every packet i send!! any suggestions??
(no there are no errors plus i double checked the hidden characters in notepad++ and everything is fine)

Is This A Good Question/Topic? 0
  • +

Replies To: Python networking UDP mind-blow problem

#2 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

Re: Python networking UDP mind-blow problem

Posted 22 March 2013 - 08:37 AM

Closing duplicate topic

Main post can be found: here

This post has been edited by atraub: 22 March 2013 - 08:37 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1