in reply to Re: Re: Re: How do I close a POE SocketFactory Socket?
in thread How do I close a POE SocketFactory Socket?
That works nicely. I discovered that deleting the wheel was bad for my other clients, thanks for the info on ID.
I'm pretty much all set on my server now, but I have one last question. The way my code currently works, my input session gets handed a value from the socket and I work on that one line of input. Now, the server that I'm porting to POE actually does a little talking back and forth during this part.
Is there any way to get the socket handle inside the input session? I understand that SocketFactory produces regular sockets, but I don't know how to grab the handle once my connection has spawned a session.
I've thought that perhaps by grabbing the socket handle and doing more IO, I'll likely be breaking the non-blocking nature of the server, so perhaps a better way would be to store the wheel ID and associated data in the heap and work on it on the next input?
I'm not sure if you can store your own data in the heap to begin with, but perhaps that would be a cleaner method.
Hmm, does this long a thread count as an interview? :P
Thanks again for all your help!
Declarent
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: How do I close a POE SocketFactory Socket?
by rcaputo (Chaplain) on Jun 27, 2002 at 05:37 UTC |