Eric E. Dolecki wrote:
Wondering if it's possible to have different classes open sockets to the
same port number? Going to throw stuff in an if/else and depending on a
variable, send to the socket with different values. They all currently open
to the same port number.
ie. inside each of the class constructors being used:

_socket = new Socket( "localhost", 5751 );

Hi,

I have done this with 2 SWF's in the IDE talking to each other, but this is possibly 2 instances of the player running - I would test in the browser as the plugin usually runs one instance of the player. I think that with the socket you are not binding to the port, so theoretically you should be able to connect lots of sockets to the same one, unlike a server, which binds usually...

Could you not have one socket that is used by different class instances? (- although I guess you may be using the instances as "addresses" so that some instances do one thing and others do another)

 Glen
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to