|
I’m. It sure what you’re asking - is it “Should the basic set of lua extra libraries include a networking api?” Or “If there is a networking API then should it be sockets?” I would think that the answer to the first is a qualified yes. If a host system supports networking then Lua should be able to use it. The question is what to do if a system does not have a network stack/interface? Does socket() not exist or does it return a “no networking here” error code. To the second, I would have made it a maybe in the good old days ... some operating systems/network stacks just couldn’t support the model inherent in the sockets API. Most of those systems, now, are either gone or have been coerced enough that they have a sockets(ish) interface so I would now say that sockets is a reasonable api model. EXCEPT the latest trend of all the kewl kidz is to include the networking protocols directly in the application executable with some J-random API... I suppose sockets would still work here, but one never knows. Frank
|