How can we use cocos2dx lua to work with net?

how can we use cocos2dx lua to work with net?
I mean, check if net is connected or not? keep a connect to server and communicate to server…is there any extesion to cocos2dx-lua?