forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Python UDP sockets

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
kimbl



Joined: 08 May 2006
Posts: 3

PostPosted: Mon May 08, 2006 11:49 am    Post subject: Python UDP sockets Reply with quote

I'm trying to put together a simple app in PSP python to send UDP messages whenever a button is pressed. I've got a simple app that displays buttonpresses on screen, but whenever I actually try to send the packet it crashes out (PSP turns off and needs a restart).

socket library seems to import ok, and the socket object is created in UDP mode, but the following kills it:

sock.sendto('down',('192.168.0.103',999))

The script runs fine on the PC using PC python with the psp2d and pspnet libraries - it even talks properly to my remote listening app!

Anyone else had problems with UDP under PSP python?
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Mon May 08, 2006 12:16 pm    Post subject: Reply with quote

Moved.

Make sure you post in the right forums next time, or I'll start deleting things.
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
kimbl



Joined: 08 May 2006
Posts: 3

PostPosted: Mon May 08, 2006 6:28 pm    Post subject: Reply with quote

Apologies - 3am finger trouble...
Back to top
View user's profile Send private message
johnsto



Joined: 18 Jan 2006
Posts: 30

PostPosted: Tue May 09, 2006 3:49 am    Post subject: Reply with quote

Have you tried a different port? Just a complete shot in the dark, but try something much much higher (I seem to recall something about ports < 1024 being reserved)
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Tue May 09, 2006 3:58 am    Post subject: Reply with quote

correct ...a nmap scan would reveal all that is reserved
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
kimbl



Joined: 08 May 2006
Posts: 3

PostPosted: Tue May 09, 2006 6:01 am    Post subject: Reply with quote

Good thought - unfortunately I originally started with port 8000, and only came down to 999 after reading a bit of sample code somewhere. I can't get either to work...

I fear I may have to learn Lua after all to get this done - shame - I much prefer Python!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group