#include <rudiments/inetsocketclient.h>
#include <rudiments/stdio.h>

int main() {

	const char	*host="sqlrserver";
	uint16_t	port=9000;

	inetsocketclient	cl;
	uint32_t i=0;
	while (true) {
		stdoutput.printf("%d: ",i);
		if (!cl.connect(host,port,-1,-1,0,0)) {
			stdoutput.printf("failed\n");
			break;
		}
		stdoutput.printf("success\n");
		cl.close();
		i++;
	}
}
