Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CiDefaultHbtTime default heartbeat time 30 seconds CiDefaultHbtTime = 30 // CiHbtMin min heartbeat time CiHbtMin = 5 // CiHbtMax max heartbeat time CiHbtMax = 60 // CiForceCloseTimeOut 5秒 CiForceCloseTimeOut = 5 )
View Source
const (
// DefaultSendBuffSize default send buff size
DefaultSendBuffSize = 1 * 10000
)
Variables ¶
This section is empty.
Functions ¶
func GetNeededProcessNum ¶
func GetNeededProcessNum() int
GetNeededProcessNum get gorountine numbers needed
Types ¶
type Acceptor ¶
type Acceptor struct {
// contains filtered or unexported fields
}
Acceptor acceptor
func (*Acceptor) GetClientIdByCompId ¶
func (*Acceptor) SendToClient ¶
SendToClient send to client
type ApplicationIF ¶
type ApplicationIF interface {
OnError(msg string, err error)
OnErrorStr(msg string)
OnEvent(msg string)
FromAdmin(fixMsg *quickfix.Message)
FromApp(fixMsg *quickfix.Message)
OnSendedData(fixMsg *quickfix.Message)
OnDisconnected(serverIP string, serverPort uint16)
}
ApplicationIF interface for upper FIX application
type Settings ¶
type Settings struct {
FixDataDictPath string
Port uint16
// tcp send buff size
SendBuffsize int
// receive callback if async or sync
AsyncReceive bool
// sended callback if async or sync
AsyncSended bool
BeginString string
SenderCompID string
// ResetOnLogon Determines if sequence numbers should be reset when recieving a logon request.
ResetOnLogon bool
}
Settings fix setting
func DefaultConfig ¶
func DefaultConfig() Settings
Click to show internal directories.
Click to hide internal directories.