File: application_2.html

package info (click to toggle)
quickfix 1.15.1%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 42,080 kB
  • sloc: cpp: 631,686; python: 129,549; ruby: 106,716; xml: 43,737; ansic: 7,668; java: 1,826; cs: 816; makefile: 544; sh: 462; sql: 313
file content (31 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>

<html>
<head>
  <title></title>
</head>

<body>
  <pre>
<b><code>require 'quickfix_ruby'

return if ARGV.length &lt; 2

fileName = ARGV[0]

begin
        settings = Quickfix::SessionSettings.new( fileName )
        application = MyApplication.new
        storeFactory = Quickfix::FileStoreFactory.new( settings )
        logFactory = Quickfix::ScreenLogFactory.new( settings )
        acceptor = Quickfix::SocketAcceptor.new( application, storeFactory, settings, logFactory )
        acceptor.start()
        # while condition == true: do something
        acceptor.stop()
rescue Quickfix::ConfigError =&gt; e
        print e
end
</code></b>
</pre>
</body>
</html>