Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/9nut/tcpmeter
/ functions
Functions
32 in github.com/9nut/tcpmeter
⨍
Functions
32
◇
Types & classes
13
↓ 3 callers
Method
timedaccept
accept with deadline will do a timed accept of the payload tcp, returning a TCPConn when possible
server.go:84
↓ 2 callers
Method
Mbps
Returns bitrate in Mega-bits per second
admui.go:28
↓ 2 callers
Method
Write
(p []byte)
server.go:18
↓ 1 callers
Function
ClientMain
(haddr string)
client.go:283
↓ 1 callers
Function
Dispatch
(ch chan<- Stats, cfg SrvConfig, worker TCPWorker)
client.go:135
↓ 1 callers
Method
GetName
()
client.go:12
↓ 1 callers
Method
GetRPC
()
client.go:14
↓ 1 callers
Function
LogClient
Continually log any stats, provide them on an output channel to downstream receivers (usually a CStatHandler)
logger.go:9
↓ 1 callers
Method
Read
(p []byte)
server.go:22
↓ 1 callers
Method
String
()
admui.go:47
↓ 1 callers
Function
TCPClient
TCPClient initiates Upload, Download or RTT measurements, based on the instructions sent to it over the Command chan and reports back its results over
client.go:243
↓ 1 callers
Function
TCPServer
TCPServer listens and handles RPC calls from clients.
server.go:175
↓ 1 callers
Function
WebUI
WebUI is an http server that provides an html UI to the user, annoucing itself at address that is passed in. It handles requests for starting and stop
admui.go:146
↓ 1 callers
Method
Work
(stop <-chan bool, stats chan<- uint64, nbytes uint64, addr string)
client.go:13
↓ 1 callers
Function
getformparams
parse and store form parameters in the map that's passed in
admui.go:120
Method
GetName
()
client.go:21
Method
GetName
()
client.go:82
Method
GetRPC
()
client.go:25
Method
GetRPC
()
client.go:86
Method
KBps
Returns bitrate in Kilo-bytes per second
admui.go:43
Method
Kbps
Returns bitrate in Kilo-bits per second
admui.go:38
Method
MBps
Returns bitrate in Mega-bytes per second
admui.go:33
Method
ServeHTTP
This handler parses the form from the user and initiates a TCPClient measurement.
admui.go:76
Method
ServeHTTP
This handler deals with GET requests for TCPClient measurement results. It returns the measurements since last snapshot in json format.
admui.go:130
Method
TCPCpy
TCPCpy method listens on a TCP host/port specified in the TCPPerf receiver and once established, it copies everything it recieves back to the sender.
server.go:155
Method
TCPRcv
TCPRcv method tries to receive the number of bytes given by the first parameter on a TCP host/port specified in the TCPPerf reciever. If successful,
server.go:112
Method
TCPSnd
TCPSnd method tries to send the number of bytes given by the first parameter on a TCP host/port specified in the TCPPerf reciever. It will store the n
server.go:134
Method
TCPStart
TCPStart method prepares the tcp link that will be used for tcp performance testing
server.go:34
Method
TCPStop
TCPStop method tears down the tcp link that was used for tcp performance testing
server.go:73
Method
Work
TCPSender Work method uploads nbyte bytes to tcp address addr; if it receives anything on the stop channel sch, it exits. it periodically reports the
client.go:32
Method
Work
TCPReceiver Work method downloads nbyte bytes from tcp address addr; if it receives anything on the stop channel sch, it exits. it periodically report
client.go:93
Function
main
()
main.go:12