You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
411 B
C++

#ifndef _CLIENT_H
#define _CLIENT_H
#include "includes/sock.hpp"
/* Client class - Inherits from 'Sock' class - Defines a TCP/UDP client. */
class Client : public Sock {
public:
Client() {}
Client(int ip_ver, char protocol, const char* address, int port) : Sock(ip_ver, protocol, address, port) {}
void create_socket() override;
void sendAll(std::string to_send);
std::string recvAll();
};
#endif