#include <cat/boks.h>
char *catboks_tcpmethod(cat_session *sess, const char *method, char **result, int maxlen);
The function is used to build up access route strings as used by Keon 4.x
with format ``method:fromip->?HOST
''.
method
will be taken from the method parameter. fromip
will be taken from the peer_addr
element of the catnet_info
struct for the CAT_CLIENT_RFD descriptor.
If *result is NULL, the result will be allocated and must be freed by the caller, otherwise *result should point to a buffer that can hold at least maxlen bytes where the result will be stored.
An empty string is returned if overflow occurs or if too few arguments are given.