diff options
author | dom96 <dominikpicheta@googlemail.com> | 2010-10-23 23:26:08 +0100 |
---|---|---|
committer | dom96 <dominikpicheta@googlemail.com> | 2010-10-23 23:26:08 +0100 |
commit | 293563ee114033db12497bfbf533c9a60d0f9bcb (patch) | |
tree | 70cd5c343d11c94ae0232297de6497cc1abe1e23 /lib | |
parent | 4922b52deaeaf2ba1bd4d9cfd063e267a599a3cc (diff) | |
download | Nim-293563ee114033db12497bfbf533c9a60d0f9bcb.tar.gz |
Added {.final.} to objects which are not meant to be inherited, and added an OSError() when recvLine fails.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/impure/ssl.nim | 2 | ||||
-rw-r--r-- | lib/pure/smtp.nim | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/impure/ssl.nim b/lib/impure/ssl.nim index e7c83e5c2..5a39f6f31 100644 --- a/lib/impure/ssl.nim +++ b/lib/impure/ssl.nim @@ -13,7 +13,7 @@ import openssl, strutils, os type - TSecureSocket* = object + TSecureSocket* = object {.final.} ssl: PSSL bio: PBIO diff --git a/lib/pure/smtp.nim b/lib/pure/smtp.nim index dd270cee2..00e636ebc 100644 --- a/lib/pure/smtp.nim +++ b/lib/pure/smtp.nim @@ -27,13 +27,13 @@ import sockets, strutils, strtabs, ssl, base64 type - TSMTP* = object + TSMTP* = object {.final.} sock: TSocket sslSock: TSecureSocket ssl: Bool debug: Bool - TMessage* = object + TMessage* = object {.final.} msgTo: seq[String] msgCc: seq[String] msgSubject: String |