Hello guys!
I have been observing that we can't reuse a socket at net.accept, because it creates a new socket every single call, but, we know that eLua's networkl layer has some faults about opening more than 3 or 4 sockets at the same time.
So, why not use the net.socket call to create a socket and use it at net.accept as a parameter??? This way we could reuse a socket and use a keep-alive architecture instead of grab a socket, close it, reopen, etc...
What you say about it? _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
No comments? 2013/4/21 Gabriel Duarte <[hidden email]>
Gabriel Duarte Linux User #471185Rio de Janeiro / RJ http://genericdev.wordpress.com/ _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
AFAIK sockets are not reuse-able in this way. A call to accept in a BSD socket architecture will always create a new socket, see: http://linux.die.net/man/2/accept
On Fri, Apr 26, 2013 at 1:59 AM, Gabriel Duarte <[hidden email]> wrote:
_______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
It's true... sorry for the dumb question. 2013/4/26 Peter Edwards <[hidden email]>
Gabriel Duarte
Linux User #471185Rio de Janeiro / RJ http://genericdev.wordpress.com/ _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
No such thing as a dumb question :) On 6 May 2013 21:11, "Gabriel Duarte" <[hidden email]> wrote:
_______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Has any thought been given to porting eLua to BeagleBone Black? With a
price of $45.00 and 2 GB of flash it looks like a very promising candidate. See: <http://www.digikey.com/product-highlights/us/en/texas-instruments-beagleboard/685?gclid=CPj1lYq5grcCFcdU4AodLn0ACQ&WT.term=beaglebone+black&WT.medium=cpc&WT.campaign=Programmers%2C+Development+Systems&WT.srch=1&WT.content=text&type=Exact&WT.source=google&network=g&adpos=1t1&WT.mc_id=Programmers%2C+Development+Systems&cshift_ck=dbbe19f1-c16e-421e-849f-2a192d030df1csNGO1u4Zv> Howard _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Free forum by Nabble | Edit this page |