WithAcceptConnFunc resets the AcceptConn function of server.
(f AcceptConn)
| 39 | |
| 40 | // WithAcceptConnFunc resets the AcceptConn function of server. |
| 41 | func (s *Server) WithAcceptConnFunc(f AcceptConn) *Server { |
| 42 | s.acceptConn = f |
| 43 | return s |
| 44 | } |
| 45 | |
| 46 | // PCaller defines generic interface shared with PersistentCaller and RawCaller. |
| 47 | type PCaller interface { |
no outgoing calls