mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
Added {.final.} to objects which are not meant to be inherited, and added an OSError() when recvLine fails.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
import openssl, strutils, os
|
||||
|
||||
type
|
||||
TSecureSocket* = object
|
||||
TSecureSocket* = object {.final.}
|
||||
ssl: PSSL
|
||||
bio: PBIO
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user