in reply to Re: Re: Re: more zero byte madness
in thread more zero byte madness

Sorry, perhaps I have not been clear enough. My server gets the data just fine. It is null terminated ASCII, that it gets. The server processes it just fine. When I go to print to the socket, I do this:

local $\ ="\0"; print $sock $xml;
and I hope to get that to the application. The application is not getting it however. It seems to recognize that something did arrive, but it seems to think that it's null.

The client application is Flash 5 by the way, if I did not mention that before. It claims to be able to establish a tcp/ip socket connection to a server (which it can) and then get xml from the result (which is the problem). Any tips at all?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: more zero byte madness
by extremely (Priest) on Dec 06, 2000 at 03:43 UTC
    So when you telnet into the server, it seems to work and actually returns the data followed by the null? Have you looked to see if it is preceding the data with a null? If you have seen that the perl server is working, what is your perl question? I don't think people here can figure out what is wrong with Flash...

    In any case, quick mucking about with the special variables and print the null explicitly. That way you know no extra chars are being sent... print $sock $xml."\00"; # or chr(0) works.

    --
    $you = new YOU;
    honk() if $you->love(perl)