Client Server WLAN (String problem)

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Predator892
Posts: 5
Joined: Sun May 11, 2008 8:34 pm

Client Server WLAN (String problem)

Post by Predator892 »

hi
i have created a program on pc (server) and a lua script on psp,
i connect to the pc>work
i send message to pc>work
i send message from pc to psp>don't work, or better it work,psp receive message but when i print this message i see only special characters!

then i tryed to resend my received message from psp to pc, and the pc see the string! then the problem is only in screen:print i think...

how i can solve?
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

I have had a problem with sending data to the PSP from a windows application using TCP/IP Socket as well. Although my problem wasn't that is displayed special charactors. My problem was that it didnt send a whole string, it would stop after 10 or so characters. My best bet to tell you is to send strings through the socket if you are not already doing so.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Predator892
Posts: 5
Joined: Sun May 11, 2008 8:34 pm

Post by Predator892 »

for pc i use the TCP (Socket) and from the psp Socket.send()
but i say you when the psp receive a string (and print like bad character) if i send this string again to the pc it receive the good string!! then only when i print...
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

try a System.sleep(50) after you send or something like that.. honeslty thats the only guess I have for you since I have not experimented very much with doing this.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Predator892
Posts: 5
Joined: Sun May 11, 2008 8:34 pm

Post by Predator892 »

same thing :(

EDIT:wait wait, if i send a high string every time from pc to psp, psp will flash or one symbol or letter or the good string!

EDIT2: YESSSS It was beacouse psp i don't know why receive the string with 2 spaces at start for example

i send 'hello'

psp receive

'__hello' (__=spaces)

now it work!!!!!!! Than you

only another thing... why i got again the limit of 512x512 in HM
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

because the graphics lib for luaplayers limits are 512x512
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Predator892
Posts: 5
Joined: Sun May 11, 2008 8:34 pm

Post by Predator892 »

I know the old versione of luaplayer (i think also HM) had support for big images
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

Nope... there are limits on libpng that limit it to 512x512 or else it crashes. The sources for HM and original luaplayer cap it at 512.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Predator892
Posts: 5
Joined: Sun May 11, 2008 8:34 pm

Post by Predator892 »

ok thx anyways ^^
Chinaphoro
Posts: 47
Joined: Mon Jan 03, 2022 10:15 am
Location: http://product-of-china.cf/
Contact:

-

Post by Chinaphoro »

Problem solved, but the app Im developing needs to be client and server at the same time, then I cant create two Queue Managers in the same machine.. Can be MQe Client and server at the same time?

Thank you
Post Reply