Multiplayer online -> How can Cocos2d-x get information from (and to) Android internet ?

I want to send/receive every second or so from an online server so I can continually synchronize the game.
I know how I can get data from internet to Android, but how do I get that data to Cocos2d-x ?
And also, I need to send data back to internet via Android.