MXS-2196: Pass Listener into dcb_accept
Modified the functions to use a listener instead of a DCB in the accepting process. This removes some of the dependenices that the listeners have on the DCB system.
This commit is contained in:
		| @ -260,7 +260,7 @@ typedef enum | ||||
| void dcb_global_init(); | ||||
|  | ||||
| int  dcb_write(DCB*, GWBUF*); | ||||
| DCB* dcb_accept(DCB* listener); | ||||
| DCB* dcb_accept(Listener* listener); | ||||
| DCB* dcb_alloc(dcb_role_t, Listener*, SERVICE* service); | ||||
| DCB* dcb_connect(struct server*, struct session*, const char*); | ||||
| int  dcb_read(DCB*, GWBUF**, int); | ||||
|  | ||||
| @ -209,6 +209,8 @@ private: | ||||
|     Listener(SERVICE* service, const std::string& name, const std::string& address, uint16_t port, | ||||
|              const std::string& protocol, const std::string& authenticator, | ||||
|              const std::string& auth_opts, void* auth_instance, SSL_LISTENER* ssl); | ||||
|  | ||||
|     friend DCB* dcb_accept(Listener* listener); | ||||
| }; | ||||
|  | ||||
| /** | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Markus Mäkelä
					Markus Mäkelä