diff options
Diffstat (limited to 'src/pkg/rpc/server.go')
| -rw-r--r-- | src/pkg/rpc/server.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/pkg/rpc/server.go b/src/pkg/rpc/server.go index c0fd9373b..3403c74bc 100644 --- a/src/pkg/rpc/server.go +++ b/src/pkg/rpc/server.go @@ -370,23 +370,17 @@ func (server *serverType) accept(lis net.Listener) { // - one return value of type os.Error // It returns an error if the receiver is not public or has no // suitable methods. -func Register(rcvr interface{}) os.Error { - return server.register(rcvr); -} +func Register(rcvr interface{}) os.Error { return server.register(rcvr) } // ServeConn runs the server on a single connection. When the connection // completes, service terminates. ServeConn blocks; the caller typically // invokes it in a go statement. -func ServeConn(conn io.ReadWriteCloser) { - go server.input(conn); -} +func ServeConn(conn io.ReadWriteCloser) { go server.input(conn) } // Accept accepts connections on the listener and serves requests // for each incoming connection. Accept blocks; the caller typically // invokes it in a go statement. -func Accept(lis net.Listener) { - server.accept(lis); -} +func Accept(lis net.Listener) { server.accept(lis) } // Can connect to RPC service using HTTP CONNECT to rpcPath. var rpcPath string = "/_goRPC_" |
