Re: gethostname() issue with Symbian platform
Pekka Riikonen <[email protected]> Tue, 5 Feb 2008 11:01:47 +0100 (CET)
| Newsgroups | gmane.network.silc.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 5 Feb 2008, Miles Qi wrote: : I am deveoping an application for Symbian platform using SILC, but I got : error "Fuction not implemented" which happens in silc_net_localhost() : function when calling gethostname(). It looks like gethostname() is not : implemented yet on Symbian at least it is not working on Emulator. My : environment is Carbide v1.2 and Symbian S60 3rd initial release(Symbian : 9.1). Do you have any idea about this problem or is there any other : substitute for gethostname() function on Symbian? Any help would be : appreciated. : I didn't know it wasn't implemented. It's possible you'll find some other routines as well that aren't yet implemented. Quickly looking it would appear we have to fix that function for Symbian. I think using RHostResolver and GetHostName() method you might be able to get the localhost: http://www.symbian.com/developer/techlib/v9.1docs/doc_source/reference/reference-cpp/N10206/RHostResolverClass.html#%3a%3aRHostResolver We also probably have to just return "localhost" in some cases since the local hostname apparently isn't available all the time on Symbian. If you want to fix that and submit patches we'd be appreciated. Pekka ________________________________________________________________________ Pekka Riikonen priikone at silcnet.org Secure Internet Live Conferencing (SILC) http://silcnet.org/ _______________________________________________________________________ Info: https://lists.silcnet.org/mailman/listinfo/silc-announce Archive: https://lists.silcnet.org/pipermail/silc-announce FAQ: http://silcnet.org/support/faq/