Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cmu440/p0
/ functions
Functions
32 in github.com/cmu440/p0
⨍
Functions
32
◇
Types & classes
6
↓ 6 callers
Function
testBasic
(t *testing.T, name string, numClients, numMessages, timeout int)
src/github.com/cmu440/p0/server_test.go:288
↓ 5 callers
Method
killClients
killClients kills the specified clients (i.e. closes their connections).
src/github.com/cmu440/p0/server_test.go:107
↓ 4 callers
Method
Close
Close shuts down the server. All client connections should be closed immediately and any goroutines running in the background should be signaled to re
src/github.com/cmu440/p0/server_api.go:26
↓ 4 callers
Method
checkCount
(expected int)
src/github.com/cmu440/p0/server_test.go:280
↓ 4 callers
Method
startClients
startClients connects the specified clients with the server, and returns a non-nil error if one or more of the clients failed to establish a connectio
src/github.com/cmu440/p0/server_test.go:93
↓ 3 callers
Function
newTestClients
(num int, slow bool)
src/github.com/cmu440/p0/server_test.go:58
↓ 3 callers
Function
newTestSystem
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:54
↓ 3 callers
Method
startServer
startServer attempts to start a server on a random port, retrying up to numTries times if necessary. A non-nil error is returned if the server failed
src/github.com/cmu440/p0/server_test.go:68
↓ 2 callers
Method
Start
Start starts the server on a distinct port and begins listening for incoming client connections. Start returns an error if there was a problem listeni
src/github.com/cmu440/p0/server_api.go:18
↓ 2 callers
Method
runTest
(numMsgs, timeout int, normalClients, slowClients []*testClient, slowDelay int)
src/github.com/cmu440/p0/server_test.go:168
↓ 2 callers
Method
startReading
startReading signals the specified clients to begin reading from the network. Messages read over the network are sent back to the test runner through
src/github.com/cmu440/p0/server_test.go:118
↓ 2 callers
Method
startWriting
startWriting signals the specified clients to begin writing to the network. In order to ensure that reads/writes are synchronized, messages are sent t
src/github.com/cmu440/p0/server_test.go:145
↓ 2 callers
Function
testCount
(t *testing.T, name string, timeout int, max int, events ...*countEvent)
src/github.com/cmu440/p0/server_test.go:408
↓ 2 callers
Function
testSlowClient
(t *testing.T, name string, numMessages, numSlowClients, numNormalClients, slowDelay, timeout int)
src/github.com/cmu440/p0/server_test.go:324
↓ 1 callers
Method
Count
Count returns the number of clients currently connected to the server. This method must not be called on an un-started or closed server.
src/github.com/cmu440/p0/server_api.go:22
↓ 1 callers
Function
New
New creates and returns (but does not start) a new MultiEchoServer.
src/github.com/cmu440/p0/server_impl.go:10
↓ 1 callers
Method
runCountTest
(events []*countEvent, timeout int)
src/github.com/cmu440/p0/server_test.go:357
Method
Close
()
src/github.com/cmu440/p0/server_impl.go:20
Method
Count
()
src/github.com/cmu440/p0/server_impl.go:24
Method
Start
(port int)
src/github.com/cmu440/p0/server_impl.go:15
Function
TestBasic1
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:425
Function
TestBasic2
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:429
Function
TestBasic3
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:433
Function
TestBasic4
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:437
Function
TestBasic5
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:441
Function
TestBasic6
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:445
Function
TestCount1
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:449
Function
TestCount2
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:457
Function
TestSlowClient1
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:467
Function
TestSlowClient2
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:471
Function
main
()
src/github.com/cmu440/srunner/srunner.go:10
Function
main
To test your server implementation, you might find it helpful to implement a simple 'client runner' program. The program could be very simple, as long
src/github.com/cmu440/crunner/crunner.go:17