With XML sockets you could send a policy
file over the wire through the socket itself, however as you’re not going
to be able to do this with a telnet server I’m not sure you have any
options. Only work around I can think of is to
write a bounce app that runs on your webserver and relays messages to/from the
telnet server. This could have security issues for you however. -----Original Message----- You’re
right, Scott. The policy file needs to be on the *destination* server – and that causes the problem. In a
socket world the destination server might not even be a web server. E.g. the
server could be a simple echo server which just sends back all text received on
a specific port. You could e.g. telnet the server: telnet
10.1.1.10 >helo So
the server waiting for a socket connection does not even know anything about
policy files including not how to server them back to a flash client. The
question remains: Can a flash player open socket connections to *non web servers*. If not, this would
mean a no go for a whole set of RIAs. Ralf Rottmann From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox IIRC you need a policy on
the webserver at the domain you are connecting. This was certainly the case for
XMLSocket, not sure about binary, but I’ve not heard it’s any
different. (Doesn’t mean it’s not different though). Ie if you are connecting
to myserver.com port 7000 you’d need a policy file at http://myserver.com Again, I’m not 100%
sure on binary socket, but xmlsocket certainly acted like this. -----Original
Message----- Any idea how that should
work? You call the Socket.connect(server,
port) class to establish a connection (and that connection GETS established
even without any policy files). On the “other side” there is a
simple echo server. Who and how should the policy file get served via the
socket? Where should it be placed on the simple echo server? I doubt that it
works with policy files. Any ideas? Ralf Rottmann From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox Policy files are also
applicable to socket connections afaik -----Original
Message----- Hi there, Is there any known way of
allowing a flex/flash movie to establish socket connects cross server? E.g.: If I want to create
a simple telnet client, host it on my private web page and want that telnet
flash movie to connect to whatever server out there. Obviously policy files do
not work as socket does not attempt an HTTP connect. Regards Ralf Rottmann
|
- RE: [flexcoders] Cross Server Socket Connection (NOT XM... Steve Cox
- RE: [flexcoders] Cross Server Socket Connection (N... Ralf Rottmann
- RE: [flexcoders] Cross Server Socket Connectio... Steve Cox
- RE: [flexcoders] Cross Server Socket Connectio... Theodore E Patrick
- RE: [flexcoders] Cross Server Socket Connection (N... Ralf Rottmann
- RE: [flexcoders] Cross Server Socket Connectio... Steve Cox
- Re: [flexcoders] Cross Server Socket Connection (N... Ralf Rottmann
- RE: [flexcoders] Cross Server Socket Connectio... Theodore E Patrick