Skip to content

Commit db008cc

Browse files
author
Chris Busbey
committed
docs for sending messages
1 parent 94e16df commit db008cc

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

44
Open Source [FIX Protocol](http://www.fixprotocol.org/) library implemented in Go

doc.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/
172183
package quickfix

registry.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
3637
func SendToTarget(m Marshaler, sessionID SessionID) error {
3738
msg := m.Marshal()
3839
session, err := LookupSession(sessionID)

0 commit comments

Comments
 (0)