directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [mina] session.write() in sessionOpened()
Date Wed, 06 Apr 2005 05:59:49 GMT
Hi Richard,

Long time no see!

On Apr 6, 2005 12:12 PM, Richard Wallace <rwallace@thewallacepack.net> wrote:
<snip/> 

> Alright, turns out I was making a stupid mistake.  I had thought I had
> created a simple pass-thru encoder, but what I forgot to do was actually
> fill in the encode() method with any actual code to pass along the
> message.  So I got that all fixed up and my client is getting messages
> again, yay!

Good! :)

> Next question I have is what's the best way to start the services?
> Right now I'm using the SimpleServiceRegistry to start stuff and I
> thought this was great when I started using it cause of how easy it is.
>  But I'm already running into a few limitations, like I can tell the
> services what port to bind on, but I can't tell them what interfaces to
> bind on.  I also can't find a way to determine after binding what
> interfaces actually got bound to.

Good point.  I fixed Service class for users to specify a
SocketAddress instead of a port number.  If you've been using
ServiceRegistry, you'll have to change your code a little bit.

<snip/>

Hope this works. :)

Thanks,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message