#include "w5100.h" #include "socket.h" extern "C" { #include "string.h" } #include "WProgram.h" #include "ethernet.h" #include "client.h" #include "server.h" uint16_t Client::_srcport = 1024; Client::Client() : _connected(false) { } Client::Client(uint8_t sock) : _connected(true), _sock(sock) { } Client::Client(uint8_t *ip, uint16_t port) : _ip(ip), _port(port), _connected(false) { } uint8_t Client::connect() { if (_connected) return 0; int i; for (i=0; i