|
| 1 | +// Copyright (c) quickfixengine.org All rights reserved. |
| 2 | +// |
| 3 | +// This file may be distributed under the terms of the quickfixengine.org |
| 4 | +// license as defined by quickfixengine.org and appearing in the file |
| 5 | +// LICENSE included in the packaging of this file. |
| 6 | +// |
| 7 | +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING |
| 8 | +// THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A |
| 9 | +// PARTICULAR PURPOSE. |
| 10 | +// |
| 11 | +// See http://www.quickfixengine.org/LICENSE for licensing information. |
| 12 | +// |
| 13 | +// Contact [email protected] if any conditions of this licensing |
| 14 | +// are not clear to you. |
| 15 | + |
1 | 16 | package quickfix |
2 | 17 |
|
3 | 18 | // Application interface should be implemented by FIX Applications. |
4 | 19 | // This is the primary interface for processing messages from a FIX Session. |
5 | 20 | type Application interface { |
6 | | - //OnCreate notification of a session begin created. |
| 21 | + // OnCreate notification of a session begin created. |
7 | 22 | OnCreate(sessionID SessionID) |
8 | 23 |
|
9 | | - //OnLogon notification of a session successfully logging on. |
| 24 | + // OnLogon notification of a session successfully logging on. |
10 | 25 | OnLogon(sessionID SessionID) |
11 | 26 |
|
12 | | - //OnLogout notification of a session logging off or disconnecting. |
| 27 | + // OnLogout notification of a session logging off or disconnecting. |
13 | 28 | OnLogout(sessionID SessionID) |
14 | 29 |
|
15 | | - //ToAdmin notification of admin message being sent to target. |
| 30 | + // ToAdmin notification of admin message being sent to target. |
16 | 31 | ToAdmin(message *Message, sessionID SessionID) |
17 | 32 |
|
18 | | - //ToApp notification of app message being sent to target. |
| 33 | + // ToApp notification of app message being sent to target. |
19 | 34 | ToApp(message *Message, sessionID SessionID) error |
20 | 35 |
|
21 | | - //FromAdmin notification of admin message being received from target. |
| 36 | + // FromAdmin notification of admin message being received from target. |
22 | 37 | FromAdmin(message *Message, sessionID SessionID) MessageRejectError |
23 | 38 |
|
24 | | - //FromApp notification of app message being received from target. |
| 39 | + // FromApp notification of app message being received from target. |
25 | 40 | FromApp(message *Message, sessionID SessionID) MessageRejectError |
26 | 41 | } |
0 commit comments