Added {.final.} to objects which are not meant to be inherited, and added an OSError() when recvLine fails.

This commit is contained in:
dom96 2010-10-23 23:26:08 +01:00
commit 293563ee11
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@
import openssl, strutils, os import openssl, strutils, os
type type
TSecureSocket* = object TSecureSocket* = object {.final.}
ssl: PSSL ssl: PSSL
bio: PBIO bio: PBIO

View file

@ -27,13 +27,13 @@
import sockets, strutils, strtabs, ssl, base64 import sockets, strutils, strtabs, ssl, base64
type type
TSMTP* = object TSMTP* = object {.final.}
sock: TSocket sock: TSocket
sslSock: TSecureSocket sslSock: TSecureSocket
ssl: Bool ssl: Bool
debug: Bool debug: Bool
TMessage* = object TMessage* = object {.final.}
msgTo: seq[String] msgTo: seq[String]
msgCc: seq[String] msgCc: seq[String]
msgSubject: String msgSubject: String