Navigation Menu

Skip to content

Commit

Permalink
Tweak BSOCK classes one more time.
Browse files Browse the repository at this point in the history
Got bitten by the famous undefined reference to `vtable for ...`
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent a23182b commit 4218e88
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/lib/bsock.c
Expand Up @@ -38,6 +38,10 @@ BSOCK::BSOCK()
m_use_keepalive = true;
}

BSOCK::~BSOCK()
{
}

/*
* This is our "class destructor" that ensures that we use
* smartalloc rather than the system free().
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bsock.h
Expand Up @@ -94,7 +94,7 @@ class BSOCK : public SMARTALLOC {

public:
BSOCK();
virtual ~BSOCK() {};
virtual ~BSOCK();

/* Methods -- in bsock.c */
void free_bsock();
Expand Down
1 change: 1 addition & 0 deletions src/lib/bsock_sctp.h
Expand Up @@ -31,6 +31,7 @@ class BSOCK_SCTP : public BSOCK {
int port, utime_t heart_beat, int *fatal);

public:
BSOCK_SCTP() {};
~BSOCK_SCTP();

/* methods -- in bsock_sctp.c */
Expand Down
4 changes: 4 additions & 0 deletions src/lib/bsock_tcp.c
Expand Up @@ -50,6 +50,10 @@
#define socketClose(fd) ::close(fd)
#endif

BSOCK_TCP::BSOCK_TCP()
{
}

BSOCK_TCP::~BSOCK_TCP()
{
destroy();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bsock_tcp.h
Expand Up @@ -31,10 +31,10 @@ class BSOCK_TCP : public BSOCK {
int port, utime_t heart_beat, int *fatal);

public:
BSOCK_TCP();
~BSOCK_TCP();

/* methods -- in bsock_tcp.c */
void init();
BSOCK *clone();
bool connect(JCR * jcr, int retry_interval, utime_t max_retry_time,
utime_t heart_beat, const char *name, char *host,
Expand Down
1 change: 1 addition & 0 deletions src/lib/bsock_udt.h
Expand Up @@ -31,6 +31,7 @@ class BSOCK_UDT : public BSOCK {
int port, utime_t heart_beat, int *fatal);

public:
BSOCK_UDT() {};
~BSOCK_UDT();

/* methods -- in bsock_udt.c */
Expand Down

0 comments on commit 4218e88

Please sign in to comment.