summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-03-21 17:44:56 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-03-21 17:44:56 +0100
commit7d07d81d2b19bb7bc352ce27a34b47972b93c73d (patch)
tree3a9a31d66201fc0213c1e4355cf6b730c7d5fdda
parentc07b837dbad1ac176a6c18062dab9184e7080309 (diff)
downloadmad-7d07d81d2b19bb7bc352ce27a34b47972b93c73d.tar
mad-7d07d81d2b19bb7bc352ce27a34b47972b93c73d.zip
Net::Connection etwas aufger?umt
-rw-r--r--src/Net/Connection.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Net/Connection.h b/src/Net/Connection.h
index 695fbb8..1c15a95 100644
--- a/src/Net/Connection.h
+++ b/src/Net/Connection.h
@@ -127,17 +127,16 @@ class Connection {
return (state == DISCONNECT || state == BYE);
}
- const gnutls_datum_t* getCertificate() {
+ const gnutls_datum_t* getCertificate() const {
return gnutls_certificate_get_ours(session);
}
- const gnutls_datum_t* getPeerCertificate() {
+ const gnutls_datum_t* getPeerCertificate() const {
unsigned int n;
return gnutls_certificate_get_peers(session, &n);
}
- const IPAddress* getPeer() {return peer;}
- int getSocket() const {return sock;}
+ const IPAddress* getPeer() const {return peer;}
void disconnect();