Documentation ¶
Index ¶
- Constants
- func AllFilesExist(files []string) bool
- func BytesToKB(bytes uint64) float64
- func BytesToMB(bytes uint64) float64
- func CallTCP(c *rpc.Client, rpcname string, args interface{}, reply interface{})
- func CallTLS(c *rpc.Client, rpcname string, args interface{}, reply interface{})
- func DialTCP(addr string) *rpc.Client
- func DialTLS(address string) *rpc.Client
- func FileExists(file string) bool
- func ListenAndServeTCP(server *rpc.Server, port int)
- func ListenAndServeTLS(server *rpc.Server, port int)
- func LocalAddr(port int) string
- func Max(arr []uint64) uint64
- func MergeHints[T matrix.Elem](h *PIR_hint[T], nh PIR_hint[T])
- func MessageSizeBytes(m interface{}) uint64
- func MessageSizeKB(m interface{}) float64
- func MessageSizeMB(m interface{}) float64
- func NewPirClient[T matrix.Elem](h *PIR_hint[T]) *pir.Client[T]
- func NewUnderhoodClient[T matrix.Elem](h *PIR_hint[T]) *underhood.Client[T]
- func OpenAppendFile(file string) *os.File
- func OpenFile(file string) *os.File
- func PrintParams(i *pir.DBInfo) string
- func RandString(n int) string
- func RandomIndex[N Number](max N) uint64
- func ReadFromChannel(ch chan bool, num int, verbose bool)
- func ReadLineFromStdin() string
- func RemoteAddr(ip string, port int) string
- func SortByScores(scores []int) []uint64
- func WriteFileToStdout(file string)
- type Number
- type PIR_hint
Constants ¶
View Source
const ( ServerPort = 1234 ServerPort2 = 1235 CoordinatorPort = 1237 EmbServerPortStart = 1240 UrlServerPortStart = 1450 )
Variables ¶
This section is empty.
Functions ¶
func AllFilesExist ¶
func FileExists ¶
func ListenAndServeTCP ¶
* serveTLS and serveTCP implement the server-side networking logic.
func ListenAndServeTLS ¶
func MessageSizeBytes ¶
func MessageSizeBytes(m interface{}) uint64
func MessageSizeKB ¶
func MessageSizeKB(m interface{}) float64
func MessageSizeMB ¶
func MessageSizeMB(m interface{}) float64
func NewUnderhoodClient ¶
func OpenAppendFile ¶
func PrintParams ¶
func RandString ¶
func RandomIndex ¶
func ReadFromChannel ¶
func ReadLineFromStdin ¶
func ReadLineFromStdin() string
func RemoteAddr ¶
func SortByScores ¶
func WriteFileToStdout ¶
func WriteFileToStdout(file string)
Types ¶
Click to show internal directories.
Click to hide internal directories.