cosocket not have socket gethostname()?

11 views
Skip to first unread message

g_l...@qq.com

unread,
Aug 8, 2017, 10:33:50 PM8/8/17
to openresty-en
I would like to get the client name of the client, but I do not want to use luasocket. Cosocket have this function?

luasocket example:

lianhuazideiMac:~ lianhuazi$ lua Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio > f=require("socket") > print(f.dns.tohostname('8.8.8.8')) google-public-dns-a.google.com table: 0x7f9a33d01cb0

cosocket example: ???

pls help me .. Handsome beauty master
Reply all
Reply to author
Forward
0 new messages