File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1- QuickFIX/Go [ ![ GoDoc] ( https://godoc.org/github.com/quickfixgo/quickfix?status.png )] ( https://godoc.org/github.com/quickfixgo/quickfix ) [ ![ Build Status] ( https://travis-ci.org/quickfixgo/quickfix.svg?branch=master )] ( https://travis-ci.org/quickfixgo/quickfix ) [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/quickfixgo/quickfix )] ( https://goreportcard.com/report/github.com/quickfixgo/quickfix )
1+ QuickFIX/Go [ ![ GoDoc] ( https://godoc.org/github.com/quickfixgo/quickfix?status.png )] ( https://godoc.org/github.com/quickfixgo/quickfix ) [ ![ Build Status] ( https://travis-ci.org/quickfixgo/quickfix.svg?branch=master )] ( https://travis-ci.org/quickfixgo/quickfix ) [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/quickfixgo/quickfix )] ( https://goreportcard.com/report/github.com/quickfixgo/quickfix )
22===========
33
44Open Source [ FIX Protocol] ( http://www.fixprotocol.org/ ) library implemented in Go
Original file line number Diff line number Diff line change @@ -168,5 +168,16 @@ Or you can go the least type safe route.
168168 err:=msg.Body.GetField(quickfix.Tag(44), field)
169169 return
170170 }
171+
172+ Sending Messages
173+
174+ Messages can be sent to the counter party with the Send and SendToTarget functions.
175+
176+ //Send determines the session to send Marshaler using header fields BeginString, TargetCompID, SenderCompID
177+ func Send(m Marshaler) error
178+
179+ //SendToTarget sends a message based on the sessionID. Convenient for use in FromApp since it provides a session ID for incoming messages
180+ func SendToTarget(m Marshaler, sessionID SessionID) error
181+
171182*/
172183package quickfix
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ func Send(m Marshaler) (err error) {
3333 return SendToTarget (msg , sessionID )
3434}
3535
36+ //SendToTarget sends a message based on the sessionID. Convenient for use in FromApp since it provides a session ID for incoming messages
3637func SendToTarget (m Marshaler , sessionID SessionID ) error {
3738 msg := m .Marshal ()
3839 session , err := LookupSession (sessionID )
You can’t perform that action at this time.
0 commit comments