Re: Problem with silc toolkit 0.9 on win32
Secure chat and conferencing protocol
Brought to you by:
priikone
From: Pekka R. <pri...@ik...> - 2002-05-29 14:39:08
|
: : So, I've tracked down this strange bug in silc toolkit that I can't : figure out any further. Basically, when the gethostbyname call is made : in silcwin32net.c at line 176, it errors out with h_errno=10093. This : error number is for WSANOTINITIALISED, indicating that WSAStartup was : not called. : : It looks like this call is being made in silc_net_win32_init. I really : have no idea why I'm getting this error. If anyone can help, I'd really : appreciate it. : Assuming you are calling silc_net_win32_init at the start of your windows application (and it doesn't return FALSE) the winsock should be initialized. I've tested this (with 0.8.x toolkit though, but there isn't changes with this stuff between these versions) with MSVC++ 6.0 and it worked fine. Make sure you call it before any other SILC function. If you think that the silc_net_win32_init doesn't work or something else is wrong, you can always startup the winsock manually, and see if it makes any difference. Just call the WSAStartup by yourself. You can also test whether you can call any network routine after silc_net_win32_init, like call gethostbyname("silc.silcnet.org") immediately after the initializing. Or some other way make sure that it either works or doesn't work. Pekka ________________________________________________________________________ Pekka Riikonen priikone at silcnet.org Secure Internet Live Conferencing (SILC) http://silcnet.org/ |