Skip to content

Commit

Permalink
Add FIXT1.1 and FIX50SP2 files
Browse files Browse the repository at this point in the history
  • Loading branch information
sai-g authored Sep 10, 2022
2 parents 310dd0f + b9eec8c commit ab8658f
Show file tree
Hide file tree
Showing 315 changed files with 562,168 additions and 52,255 deletions.
8 changes: 4 additions & 4 deletions acceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/alpacahq/quickfix/config"
)

//Acceptor accepts connections from FIX clients and manages the associated sessions.
// Acceptor accepts connections from FIX clients and manages the associated sessions.
type Acceptor struct {
app Application
settings *Settings
Expand All @@ -27,7 +27,7 @@ type Acceptor struct {
sessionFactory
}

//Start accepting connections.
// Start accepting connections.
func (a *Acceptor) Start() error {
socketAcceptHost := ""
if a.settings.GlobalSettings().HasSetting(config.SocketAcceptHost) {
Expand Down Expand Up @@ -72,7 +72,7 @@ func (a *Acceptor) Start() error {
return nil
}

//Stop logs out existing sessions, close their connections, and stop accepting new connections.
// Stop logs out existing sessions, close their connections, and stop accepting new connections.
func (a *Acceptor) Stop() {
defer func() {
_ = recover() // suppress sending on closed channel error
Expand All @@ -86,7 +86,7 @@ func (a *Acceptor) Stop() {
a.sessionGroup.Wait()
}

//NewAcceptor creates and initializes a new Acceptor.
// NewAcceptor creates and initializes a new Acceptor.
func NewAcceptor(app Application, storeFactory MessageStoreFactory, settings *Settings, logFactory LogFactory) (a *Acceptor, err error) {
a = &Acceptor{
app: app,
Expand Down
4 changes: 2 additions & 2 deletions application.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package quickfix

//The Application interface should be implemented by FIX Applications.
//This is the primary interface for processing messages from a FIX Session.
// The Application interface should be implemented by FIX Applications.
// This is the primary interface for processing messages from a FIX Session.
type Application interface {
//Notification of a session begin created.
OnCreate(sessionID SessionID)
Expand Down
2 changes: 1 addition & 1 deletion begin_string.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package quickfix

//FIX BeginString string values
// FIX BeginString string values
const (
BeginStringFIX40 = "FIX.4.0"
BeginStringFIX41 = "FIX.4.1"
Expand Down
12 changes: 6 additions & 6 deletions cmd/generate-fix/internal/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
printerMode = printer.UseSpaces | printer.TabIndent
)

//ParseError indicates generated go source is invalid
// ParseError indicates generated go source is invalid
type ParseError struct {
path string
err error
Expand All @@ -27,12 +27,12 @@ func (e ParseError) Error() string {
return fmt.Sprintf("Error parsing %v: %v", e.path, e.err)
}

//ErrorHandler is a convenience struct for interpretting generation Errors
// ErrorHandler is a convenience struct for interpretting generation Errors
type ErrorHandler struct {
ReturnCode int
}

//Handle interprets the generation error. Proceeds with setting returnCode, or panics depending on error type
// Handle interprets the generation error. Proceeds with setting returnCode, or panics depending on error type
func (h *ErrorHandler) Handle(err error) {
switch err := err.(type) {
case nil:
Expand Down Expand Up @@ -63,9 +63,9 @@ func write(filePath string, fset *token.FileSet, f *ast.File) error {
return err
}

//WriteFile parses the generated code in fileOut and writes the code out to filePath.
//Function performs some import clean up and gofmts the code before writing
//Returns ParseError if the generated source is invalid but is written to filePath
// WriteFile parses the generated code in fileOut and writes the code out to filePath.
// Function performs some import clean up and gofmts the code before writing
// Returns ParseError if the generated source is invalid but is written to filePath
func WriteFile(filePath, fileOut string) error {
fset := token.NewFileSet()
f, pErr := parser.ParseFile(fset, "", fileOut, parser.ParseComments)
Expand Down
2 changes: 1 addition & 1 deletion cmd/generate-fix/internal/globals.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
GlobalFieldTypes []*datadictionary.FieldType
)

//sort fieldtypes by name
// sort fieldtypes by name
type byFieldName []*datadictionary.FieldType

func (n byFieldName) Len() int { return len(n) }
Expand Down
2 changes: 1 addition & 1 deletion config/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package config

//NOTE: Additions to this file should be made to both config/doc.go and http://www.quickfixgo.org/docs/

//Const configuration settings
// Const configuration settings
const (
BeginString string = "BeginString"
SenderCompID string = "SenderCompID"
Expand Down
Loading

0 comments on commit ab8658f

Please sign in to comment.