| View previous topic :: View next topic |
| Author |
Message |
kimbl
Joined: 08 May 2006 Posts: 3
|
Posted: Mon May 08, 2006 11:49 am Post subject: Python UDP sockets |
|
|
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 |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Mon May 08, 2006 12:16 pm Post subject: |
|
|
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 |
|
 |
kimbl
Joined: 08 May 2006 Posts: 3
|
Posted: Mon May 08, 2006 6:28 pm Post subject: |
|
|
| Apologies - 3am finger trouble... |
|
| Back to top |
|
 |
johnsto
Joined: 18 Jan 2006 Posts: 30
|
Posted: Tue May 09, 2006 3:49 am Post subject: |
|
|
| 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 |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Tue May 09, 2006 3:58 am Post subject: |
|
|
correct ...a nmap scan would reveal all that is reserved _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
kimbl
Joined: 08 May 2006 Posts: 3
|
Posted: Tue May 09, 2006 6:01 am Post subject: |
|
|
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 |
|
 |
|