j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
--- Eric Merritt cyberlync@yahoo.com wrote:
This looks really cool, is there any way to know which connection a ByteArray is submitted from? I was just thinking in terms of authentication functionality.
Yes, the MaServerSocket sends event notifications to its #server (an instance of MaServer, by default) for client sockets all the way through the request/response process. By default, these are ignored, but you can choose to implement some behavior on any one of them, including the accept of a client socket. At this time, the method #noteSocketQueued: aSocket is available to override. The argument is the client Socket, from which you should be able to get the IP or other info.
I hope this answers your question.
Regards, Chris
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
squeak-dev@lists.squeakfoundation.org