How to connect server by Android

I saw C++ send connect command to server.
What command should I send at Android?