I have class const values that i was calling up and passing through... so it
seemed easier to make an instance of the class, which connects to a socket
(all the same), and then based on logic, pull a const out of the class and
send it through.

On Thu, Dec 4, 2008 at 10:41 AM, Eamonn Faherty <[EMAIL PROTECTED]>wrote:

> I don't think that is possible but even if it is, it doesn't sound that
> graceful.  Why not have a single SocketProxy or SocketWrapper class with a
> single socket connection.  You can pass that as a reference to two or more
> classes.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
> Sent: 04 December 2008 15:24
> To: Flash Coders List
> Subject: [Flashcoders] Different class instances with socket using same
> portnumber?
>
> 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 );
>
> --
> http://ericd.net
> Interactive design and development
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to