Documentation
¶
Index ¶
- Constants
- func CloseConnection(conn *Conn)
- func ListenForSingleMessage(dstPort string, certFile string, keyFile string, handler ConnectionHandler) error
- func ListenLoop(dstPort string, certFile string, keyFile string, handler ConnectionHandler) error
- func SendMessage(dstAddr string, reqType uint8, req interface{}, resp interface{}, ...) error
- func SendMessageNoResp(dstAddr string, reqType uint8, req interface{}) error
- func SendMessageWithConnection(conn *Conn, reqType uint8, req interface{}, resp interface{}, respErr *error) error
- func SendMessageWithConnectionNoResp(conn *Conn, reqType uint8, req interface{}) error
- type BatchFinishRequest
- type BatchFinishResponse
- type BatchStartRequest
- type BatchStartResponse
- type ClientConfig
- type Conn
- type ConnectionHandler
- type GetStateRequest
- type GetStateResponse
- type MasterConfig
- type MasterSetupRequest
- type MasterSetupResponse
- type SearchRequest_malicious
- type SearchRequest_semihonest
- type SearchResponse_malicious
- type SearchResponse_semihonest
- type Server
- type ServerConfig
- type SetupRequest
- type SetupResponse
- type SystemConfig
- type Update
- type UpdateRequest_malicious
- type UpdateRequest_semihonest
- type UpdateResponse_malicious
- type UpdateResponse_semihonest
Constants ¶
View Source
const ( SEARCH_REQUEST_MALICIOUS uint8 = iota SEARCH_REQUEST_SEMIHONEST UPDATE_REQUEST_MALICIOUS UPDATE_REQUEST_SEMIHONEST SETUP_REQUEST GET_STATE_REQUEST BATCH_START_REQUEST BATCH_FINISH_REQUEST )
View Source
const MAX_KEYWORD_SIZE = 32
Variables ¶
This section is empty.
Functions ¶
func ListenForSingleMessage ¶
func ListenForSingleMessage(dstPort string, certFile string, keyFile string, handler ConnectionHandler) error
Listen for a single message and run a handler to respond.
func ListenLoop ¶
func ListenLoop(dstPort string, certFile string, keyFile string, handler ConnectionHandler) error
Loop listening for incoming connections.
func SendMessage ¶
func SendMessage(dstAddr string, reqType uint8, req interface{}, resp interface{}, respErr *error) error
Send a message, opening and closing a connection (wait for a response).
func SendMessageNoResp ¶
Send a message, opening and closing a connection (no response expected).
func SendMessageWithConnection ¶
func SendMessageWithConnection(conn *Conn, reqType uint8, req interface{}, resp interface{}, respErr *error) error
Send a message over a connection (wait for a response).
func SendMessageWithConnectionNoResp ¶
Send a message over a connection (no response expected).
Types ¶
type BatchFinishRequest ¶
type BatchFinishRequest struct {
Commit bool
}
type BatchFinishResponse ¶
type BatchFinishResponse struct {
}
type BatchStartRequest ¶
type BatchStartResponse ¶
type BatchStartResponse struct {
Commit bool
}
type ClientConfig ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func OpenConnection ¶
Open a TLS connection to IP addr and port pair.
type ConnectionHandler ¶
type GetStateRequest ¶
type GetStateRequest struct {
Test string
}
type GetStateResponse ¶
type MasterConfig ¶
type MasterSetupRequest ¶
type MasterSetupResponse ¶
type MasterSetupResponse struct {
Test string
}
type SearchRequest_malicious ¶
type ServerConfig ¶
type SetupRequest ¶
type SetupRequest struct {
BenchmarkDir string
}
type SetupResponse ¶
type SystemConfig ¶
type SystemConfig struct {
MasterAddr string
MasterID string
MasterPort string
MasterCertFile string
MasterKeyFile string
ClientAddrs []string
ClientIDs []string
Servers []Server
OutDir string
ClientMaskKey string
ClientMacKey string
SSHKeyPath string
BaselineServerAddr string
BaselineServerID string
BaselineClientAddr string
BaselineClientID string
}
type UpdateRequest_malicious ¶
type UpdateResponse_malicious ¶
type UpdateResponse_malicious struct {
Test string
}
type UpdateResponse_semihonest ¶
type UpdateResponse_semihonest struct {
Test string
}
Click to show internal directories.
Click to hide internal directories.