[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[help-serveez] Re: Questions about serveez.
From: |
stefan |
Subject: |
[help-serveez] Re: Questions about serveez. |
Date: |
Sat, 26 Apr 2003 19:53:00 +0200 (CEST) |
Hello!
> I do have a question regarding embedding serveez into C application.
> The steps I shall perform:
> - Create server definition and functions;
> - Make this server known to serveez:
> svz_servertype_add(&my_server_definition);
> my = svz_server_instantiate(&my_server_definition, "my");
> svz_server_add(my);
> printf("%d\n", svz_server_init_all());
> svz_server_bind(my, &my_default_port);
> svz_loop();
> - But it's wont bind
> I have: int my_global_init (svz_servertype_t *server) {
> printf("proxy_global_init\n");
> my_default_port.proto = PROTO_TCP;
> my_default_port.tcp_port = 8006;
> my_default_port.tcp_ipaddr = "*";
> return 0;
> }
What I can tell right now is that you need to:
svz_portcfg_mkaddr (&my_default_port);
svz_portcfg_add ("my_name", &my_default_port);
in your my_global_init() function. Was that enough?
> Another question:
> How I can create a context for each connection. Is there only way to do
> it is to create assiciative array and use unique connection id ?
I'll post something about that later...
Hope this helps,
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [help-serveez] Re: Questions about serveez.,
stefan <=