Anonymous
public cpp v1 · immutable#include "TCPSocketException.h"TCPSocketException::TCPSocketException(char * telMsg){ msg = new char [strlen(telMsg)+1]; strcpy(msg, telMsg);}TCPSocketException::TCPSocketException(const TCPSocketException & telEx){ msg = new char [strlen(telEx.msg)+1]; strcpy(msg, telEx.msg);}TCPSocketException::~TCPSocketException(){ delete [] msg;}char * TCPSocketException::getMessage(){ return msg;}