Someone
public text v1 · immutableclass csocket
{
public:
csocket();
bool connect(const char * host, unsigned short port, bool use_ssl = false);
void disconnect();
int send(const char *buf, int len);
int recv(char *buf, int len);
bool is_connected()
{
if (m_s == -1) return false;
return true;
}
private:
int m_s;
bool b_ssl;
};