[WEB REQ] silc_net_gethostbyname - Silc toolkit

"Marco Spinaci" <[email protected]>
Newsgroups gmane.network.silc.user
Message-ID <[email protected]>
Software: Silc toolkit
Operating System: Windows xp
Installation: source

Hi silc-users,
I\'ve installed silc toolkit from sources with the provided visual c++ project in order to develop a little program of mine that has to, above other tasks, send one file to a sftp server and take back another. To do so I\'ve tried to use the sftp libraries provided with silc, but i can\'t make them work correctly...
After some pains (mainly due to my lack of skill in programming under windows and installing libraries in visual c++) i\'ve installed it, and, with some other littler pains, i\'ve made the test programs work. The only thing that doesn\'t work is, unfortunately, the most important one...
The funcion silc_net_create_connection always returned -1, writing on the stderr that it was unable to resolve the ip address I gave. That sounded strange, first of all because I left the standard 127.0.0.1 (and i think that at least localhost should be recognised...), but also because trying different addresses just the same happened. I\'ve tryed ips I can connect to with programs like putty and winscp, so I don\'t really think it\'s addresses\' fault. I\'ve also tryed to switch from name address to ip address, but it was just the same.
In the end I tryed to isolate the function silc_net_gethostbyname, but, whatever i passed to it, the return value was always FALSE.
Can anyone explain me some possible causes for such a thing? If there is something I have to do (some functions I have to call) before looking for ip-addresses, other than initializing silc and setting it up for windows, please, tell me too.

Thank you all

P.S. I have not subscribed to ML, will the answer be sent to my e-mail address or what? I\'ve just filled-in the form I found on the website...
P.P.S. I\'m sorry for my poor english, it\'s the first time i write on an english ML :)

_______________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-users
Archive: https://lists.silcnet.org/pipermail/silc-users
FAQ:     http://silcnet.org/support/faq/
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.