Re: MC35i on a TCP terminal server -- patch now

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi again,

Stanislav Sinyagin schrieb:
> Hi Alex,
> 
> --- Alexander Malysh <[email protected]> wrote:
> 
>>>>+        if (strcmp(octstr_get_cstr(privdata->device), "rawtcp") == 0) {
>>>>+            privdata->fd =
>>
>>don't use strcmp. you can use octstr_str_compare or 
>>octstr_str_case_compare.
> 
> 
> ok, will do.
> 
> 
>>>>+        privdata->rawtcp_host = cfg_get(cfg, octstr_imm("rawtcp-host"));
>>>>+        if (cfg_get_integer(&portno, cfg, octstr_imm("rawtcp-port")) ==
> 
> 
>>why do you introduce new config variables? why not just reuse already 
>>available 'host'/'port'?
> 
> 
> because I thought it's inline with other syntax standards: there are 
> already variables like bearerbox-host, or http-proxy-host specifying some 
> remote entity. Besides, it's more explanative and tolerant to future 
> features which may also refer to some host/port information.

yes and no. but in smsc group we try to keep config options low, so that 
user is not killed with all of them ;)

Thanks,
Alex

> 
> Thanks,
> Stanislav
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.