Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Haivision/srtgo
/ functions
Functions
124 in github.com/Haivision/srtgo
⨍
Functions
124
◇
Types & classes
21
↓ 34 callers
Method
Error
()
errors.go:72
↓ 20 callers
Function
NewSrtSocket
NewSrtSocket - Create a new SRT Socket
srtgo.go:82
↓ 15 callers
Function
srtGetAndClearError
MUST be called from same OS thread that generated the error (i.e.: use runtime.LockOSThread())
errors.go:58
↓ 13 callers
Method
Close
Close the SRT socket
srtgo.go:279
↓ 8 callers
Function
InitSRT
InitSRT - Initialize srt library
srtgo.go:72
↓ 6 callers
Method
Listen
Listen for incoming connections. The backlog setting defines how many sockets may be allowed to wait until they are accepted (excessive connection req
srtgo.go:172
↓ 6 callers
Method
getSockOpt
(opt int, data unsafe.Pointer, size *int)
srtgo.go:487
↓ 6 callers
Method
unblock
(mode PollMode, pollerr, ioready bool)
poll.go:230
↓ 5 callers
Method
Accept
Accept an incoming connection
accept.go:40
↓ 5 callers
Method
setSockOpt
(opt int, data unsafe.Pointer, size int)
srtgo.go:477
↓ 4 callers
Function
AcceptHelper
(numSockets int, port uint16, options map[string]string, t *testing.T)
srtgo_test.go:120
↓ 4 callers
Function
CreateAddrInet
(name string, port uint16)
netutils.go:70
↓ 4 callers
Method
wait
(mode PollMode)
poll.go:96
↓ 4 callers
Method
wrapSysErr
(errno syscall.Errno)
errors.go:113
↓ 3 callers
Method
Connect
Connect to a remote endpoint
srtgo.go:203
↓ 3 callers
Method
Is
(target error)
errors.go:86
↓ 3 callers
Method
Read
Read data from the SRT socket
read.go:40
↓ 3 callers
Method
Write
Write data to the SRT socket
write.go:40
↓ 3 callers
Method
postconfiguration
(sck *SrtSocket)
srtgo.go:556
↓ 3 callers
Method
reset
(mode PollMode)
poll.go:259
↓ 3 callers
Method
setDeadline
(t time.Time, mode PollMode)
poll.go:190
↓ 3 callers
Function
udpAddrFromSockaddr
(addr *syscall.RawSockaddrAny)
netutils.go:19
↓ 2 callers
Function
benchAccept
(blocking string, N int)
poll_test.go:23
↓ 2 callers
Method
checkPollErr
(mode PollMode)
poll.go:172
↓ 2 callers
Function
ntohs
(val uint16)
netutils.go:14
↓ 2 callers
Function
pollDescInit
(s C.SRTSOCKET)
poll.go:70
↓ 2 callers
Function
randomPort
()
srtgo_test.go:14
↓ 2 callers
Method
release
()
poll.go:86
↓ 2 callers
Function
runTransmitBench
(b *testing.B, blocking bool)
rw_test.go:87
↓ 2 callers
Function
setSocketOptions
Set socket options for SRT
srtsocketoptions.go:133
↓ 2 callers
Function
srtRecvMsg2Impl
(u C.SRTSOCKET, buf []byte, msgctrl *C.SRT_MSGCTRL)
read.go:24
↓ 2 callers
Function
srtSendMsg2Impl
(u C.SRTSOCKET, buf []byte, msgctrl *C.SRT_MSGCTRL)
write.go:24
↓ 2 callers
Function
storeLogCBPtr
(ptr unsafe.Pointer)
logging.go:59
↓ 1 callers
Method
GetSockOptBool
GetSockOptBool - return bool value obtained with srt_getsockopt
srtgo.go:406
↓ 1 callers
Method
GetSockOptInt
GetSockOptInt - return int value obtained with srt_getsockopt
srtgo.go:419
↓ 1 callers
Method
GetSockOptString
GetSockOptString - return string value obtained with srt_getsockopt
srtgo.go:437
↓ 1 callers
Method
SetListenCallback
SetListenCallback - set a function to be called early in the handshake before a client is handed to accept on a listening socket. The connection can b
srtgo.go:317
↓ 1 callers
Method
SetRejectReason
SetRejectReason - set custom reason for connection reject
srtgo.go:388
↓ 1 callers
Method
SetSockOptBool
SetSockOptBool - set bool value using srt_setsockopt
srtgo.go:454
↓ 1 callers
Method
SetSockOptInt
SetSockOptInt - set int value using srt_setsockopt
srtgo.go:463
↓ 1 callers
Method
SetSockOptString
SetSockOptString - set string value using srt_setsockopt
srtgo.go:473
↓ 1 callers
Method
Temporary
()
errors.go:105
↓ 1 callers
Method
Timeout
()
errors.go:109
↓ 1 callers
Method
close
()
poll.go:162
↓ 1 callers
Function
connectLoop
(port uint16, semChan chan struct{})
poll_test.go:7
↓ 1 callers
Function
getSocketLingerOption
(s *SrtSocket)
srtsocketoptions.go:119
↓ 1 callers
Function
handler
echo received packets
examples/echo-receiver/main.go:34
↓ 1 callers
Function
newFromSocket
(acceptSocket *SrtSocket, socket C.SRTSOCKET)
srtgo.go:135
↓ 1 callers
Function
newSrtStats
(stats *C.SRT_TRACEBSTATS)
srtstats.go:98
↓ 1 callers
Method
pollClose
(pd *pollDesc)
pollserver.go:54
↓ 1 callers
Method
pollOpen
(pd *pollDesc)
pollserver.go:40
↓ 1 callers
Function
pollServerCtx
()
pollserver.go:19
↓ 1 callers
Method
preconfiguration
()
srtgo.go:498
↓ 1 callers
Method
receive
Creates a listener socket and keeps reading from it
rw_test.go:54
↓ 1 callers
Method
run
()
pollserver.go:73
↓ 1 callers
Method
send
Creates a connector socket and keeps writing to it
rw_test.go:20
↓ 1 callers
Function
setSocketLingerOption
(s C.int, li int32)
srtsocketoptions.go:104
↓ 1 callers
Function
sockAddrFromIp4
(ip net.IP, port uint16)
netutils.go:44
↓ 1 callers
Function
sockAddrFromIp6
(ip net.IP, port uint16)
netutils.go:57
↓ 1 callers
Function
srtAcceptImpl
(lsn C.SRTSOCKET, addr *C.struct_sockaddr, addrlen *C.int)
accept.go:25
Function
BenchmarkAcceptBlocking
(b *testing.B)
poll_test.go:45
Function
BenchmarkAcceptNonBlocking
(b *testing.B)
poll_test.go:49
Function
BenchmarkRWBlocking
(b *testing.B)
rw_test.go:116
Function
BenchmarkRWNonBlocking
(b *testing.B)
rw_test.go:120
Function
CleanupSRT
CleanupSRT - Cleanup SRT lib
srtgo.go:77
Method
Error
()
errors.go:21
Method
Error
()
errors.go:25
Method
Error
()
errors.go:29
Method
Error
()
errors.go:33
Method
Error
()
errors.go:37
Method
Error
()
errors.go:41
Method
Error
()
errors.go:45
Method
Error
()
errors.go:125
Method
GetSockOptByte
GetSockOptByte - return byte value obtained with srt_getsockopt
srtgo.go:397
Method
GetSockOptInt64
GetSockOptInt64 - return int64 value obtained with srt_getsockopt
srtgo.go:428
Method
GetSocket
()
srtgo.go:165
Method
Is
(target error)
errors.go:129
Method
Mode
Mode - Return working mode of the SRT socket
srtgo.go:245
Method
PacketSize
PacketSize - Return packet size of the SRT socket
srtgo.go:250
Method
PollTimeout
PollTimeout - Return polling max time, for connect/read/write operations. Only applied when socket is in non-blocking mode.
srtgo.go:256
Method
SetConnectCallback
SetConnectCallback - set a function to be called after a socket or connection in a group has failed Note that the function is not guaranteed to be cal
srtgo.go:345
Method
SetDeadline
(deadline time.Time)
srtgo.go:266
Method
SetPollTimeout
SetPollTimeout - Sets polling max time, for connect/read/write operations. Only applied when socket is in non-blocking mode.
srtgo.go:262
Method
SetReadDeadline
(deadline time.Time)
srtgo.go:270
Method
SetSockOptByte
SetSockOptByte - set byte value using srt_setsockopt
srtgo.go:449
Method
SetSockOptInt64
SetSockOptInt64 - set int64 value using srt_setsockopt
srtgo.go:468
Method
SetWriteDeadline
(deadline time.Time)
srtgo.go:274
Function
SrtSetLogHandler
(cb LogCallBackFunc)
logging.go:48
Function
SrtSetLogLevel
(level SrtLogLevel)
logging.go:44
Function
SrtUnsetLogHandler
()
logging.go:54
Method
Stats
Stats - Retrieve stats from the SRT socket
srtgo.go:232
Method
Temporary
()
errors.go:53
Method
Temporary
()
errors.go:133
Function
TestAcceptBlocking
(t *testing.T)
srtgo_test.go:179
Function
TestAcceptNonBlocking
(t *testing.T)
srtgo_test.go:171
Function
TestCreateAddrInetV4
(t *testing.T)
netutils_test.go:9
Function
TestCreateAddrInetV6
(t *testing.T)
netutils_test.go:37
Function
TestListen
(t *testing.T)
srtgo_test.go:106
Function
TestMultipleAcceptBlocking
(t *testing.T)
srtgo_test.go:196
Function
TestMultipleAcceptNonBlocking
(t *testing.T)
srtgo_test.go:188
next →
1–100 of 124, ranked by callers