@@ -15,7 +15,7 @@ import (
1515 "github.com/quickfixgo/quickfix/config"
1616)
1717
18- //Acceptor accepts connections from FIX clients and manages the associated sessions.
18+ // Acceptor accepts connections from FIX clients and manages the associated sessions.
1919type Acceptor struct {
2020 app Application
2121 settings * Settings
@@ -43,7 +43,7 @@ type ConnectionValidator interface {
4343 Validate (netConn net.Conn , session SessionID ) error
4444}
4545
46- //Start accepting connections.
46+ // Start accepting connections.
4747func (a * Acceptor ) Start () (err error ) {
4848 socketAcceptHost := ""
4949 if a .settings .GlobalSettings ().HasSetting (config .SocketAcceptHost ) {
@@ -112,7 +112,7 @@ func (a *Acceptor) Start() (err error) {
112112 return
113113}
114114
115- //Stop logs out existing sessions, close their connections, and stop accepting new connections.
115+ // Stop logs out existing sessions, close their connections, and stop accepting new connections.
116116func (a * Acceptor ) Stop () {
117117 defer func () {
118118 _ = recover () // suppress sending on closed channel error
@@ -141,7 +141,7 @@ func (a *Acceptor) RemoteAddr(sessionID SessionID) (net.Addr, bool) {
141141 return val , ok
142142}
143143
144- //NewAcceptor creates and initializes a new Acceptor.
144+ // NewAcceptor creates and initializes a new Acceptor.
145145func NewAcceptor (app Application , storeFactory MessageStoreFactory , settings * Settings , logFactory LogFactory ) (a * Acceptor , err error ) {
146146 a = & Acceptor {
147147 app : app ,
@@ -394,7 +394,8 @@ LOOP:
394394// Use it when you need a custom authentication logic that includes lower level interactions,
395395// like mTLS auth or IP whitelistening.
396396// To remove a previously set validator call it with a nil value:
397- // a.SetConnectionValidator(nil)
397+ //
398+ // a.SetConnectionValidator(nil)
398399func (a * Acceptor ) SetConnectionValidator (validator ConnectionValidator ) {
399400 a .connectionValidator = validator
400401}
0 commit comments