Documentation
¶
Index ¶
- func DialTCP(comm *P2PComm, dst int, address string)
- func EstablishConnections(wg *sync.WaitGroup, comm *P2PComm, partyID int, totalParties int)
- func ListenTCP(comm *P2PComm, port string, src int)
- type Communicator
- type P2PComm
- func (comm *P2PComm) Close() error
- func (comm *P2PComm) GetSock(key int) *net.Conn
- func (comm *P2PComm) Recv(reader *bufio.Reader, src int) ([]byte, int, error)
- func (comm *P2PComm) RecvBytesMap(reader *bufio.Reader, src int) map[int][]byte
- func (comm *P2PComm) RecvBytesSlice(reader *bufio.Reader, src int) [][]byte
- func (comm *P2PComm) RecvBytesSliceMap(reader *bufio.Reader, src int) map[int][][]byte
- func (comm *P2PComm) RecvMatrix(reader *bufio.Reader, src int, length int) structs.Matrix[ring.Poly]
- func (comm *P2PComm) RecvVector(reader *bufio.Reader, src int, length int) structs.Vector[ring.Poly]
- func (comm *P2PComm) SendBytes(writer *bufio.Writer, dst int, msg []byte) (int, error)
- func (comm *P2PComm) SendBytesMap(writer *bufio.Writer, dst int, data map[int][]byte)
- func (comm *P2PComm) SendBytesSlice(writer *bufio.Writer, dst int, data [][]byte)
- func (comm *P2PComm) SendBytesSliceMap(writer *bufio.Writer, dst int, data map[int][][]byte)
- func (comm *P2PComm) SendMatrix(writer *bufio.Writer, dst int, msg structs.Matrix[ring.Poly])
- func (comm *P2PComm) SendVector(writer *bufio.Writer, dst int, msg structs.Vector[ring.Poly])
- func (comm *P2PComm) SetSock(key int, conn *net.Conn)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstablishConnections ¶
Types ¶
type Communicator ¶
type P2PComm ¶
func (*P2PComm) RecvBytesMap ¶
func (*P2PComm) RecvBytesSlice ¶
func (*P2PComm) RecvBytesSliceMap ¶
func (*P2PComm) RecvMatrix ¶
func (*P2PComm) RecvVector ¶
func (*P2PComm) SendBytesMap ¶
func (*P2PComm) SendBytesSlice ¶
func (*P2PComm) SendBytesSliceMap ¶
func (*P2PComm) SendMatrix ¶
func (*P2PComm) SendVector ¶
Click to show internal directories.
Click to hide internal directories.