MCPcopy Create free account

hub / github.com/cmu440/p0 / functions

Functions32 in github.com/cmu440/p0

↓ 6 callersFunctiontestBasic
(t *testing.T, name string, numClients, numMessages, timeout int)
src/github.com/cmu440/p0/server_test.go:288
↓ 5 callersMethodkillClients
killClients kills the specified clients (i.e. closes their connections).
src/github.com/cmu440/p0/server_test.go:107
↓ 4 callersMethodClose
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 callersMethodcheckCount
(expected int)
src/github.com/cmu440/p0/server_test.go:280
↓ 4 callersMethodstartClients
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 callersFunctionnewTestClients
(num int, slow bool)
src/github.com/cmu440/p0/server_test.go:58
↓ 3 callersFunctionnewTestSystem
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:54
↓ 3 callersMethodstartServer
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 callersMethodStart
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 callersMethodrunTest
(numMsgs, timeout int, normalClients, slowClients []*testClient, slowDelay int)
src/github.com/cmu440/p0/server_test.go:168
↓ 2 callersMethodstartReading
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 callersMethodstartWriting
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 callersFunctiontestCount
(t *testing.T, name string, timeout int, max int, events ...*countEvent)
src/github.com/cmu440/p0/server_test.go:408
↓ 2 callersFunctiontestSlowClient
(t *testing.T, name string, numMessages, numSlowClients, numNormalClients, slowDelay, timeout int)
src/github.com/cmu440/p0/server_test.go:324
↓ 1 callersMethodCount
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 callersFunctionNew
New creates and returns (but does not start) a new MultiEchoServer.
src/github.com/cmu440/p0/server_impl.go:10
↓ 1 callersMethodrunCountTest
(events []*countEvent, timeout int)
src/github.com/cmu440/p0/server_test.go:357
MethodClose
()
src/github.com/cmu440/p0/server_impl.go:20
MethodCount
()
src/github.com/cmu440/p0/server_impl.go:24
MethodStart
(port int)
src/github.com/cmu440/p0/server_impl.go:15
FunctionTestBasic1
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:425
FunctionTestBasic2
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:429
FunctionTestBasic3
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:433
FunctionTestBasic4
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:437
FunctionTestBasic5
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:441
FunctionTestBasic6
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:445
FunctionTestCount1
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:449
FunctionTestCount2
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:457
FunctionTestSlowClient1
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:467
FunctionTestSlowClient2
(t *testing.T)
src/github.com/cmu440/p0/server_test.go:471
Functionmain
()
src/github.com/cmu440/srunner/srunner.go:10
Functionmain
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