All pastes #127410 Raw Edit

Someone

public text v1 · immutable
·published 2006-08-12 05:37 UTC
rendered paste body
class 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;
};