qpid-proton mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cliff Jansen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (PROTON-239) Porting Issue -- gethostname() is part of winsock library
Date Wed, 13 Feb 2013 20:02:12 GMT

     [ https://issues.apache.org/jira/browse/PROTON-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Cliff Jansen reassigned PROTON-239:

    Assignee: Cliff Jansen
> Porting Issue -- gethostname() is part of winsock library
> ---------------------------------------------------------
>                 Key: PROTON-239
>                 URL: https://issues.apache.org/jira/browse/PROTON-239
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>         Environment: Windows using Visual Studio 2010
>            Reporter: Mary hinton
>            Assignee: Cliff Jansen
>              Labels: build
>             Fix For: 0.4
> In Visual Studio, gethostname() is found within the winsock library. To use it in proton.c,
we have to include the winsock header and make sure the WSAStartup() (used to initialize the
windows socket library) has already been called by pn_driver(). 
> I was wondering if we could isolate the winsock header so that it is only included in
> We could set up a new function in driver.c called pn_gethostname() whose only function
is to call gethostname().
> int pn_gethostname(char *name, int namelen)
> {
> 	return gethostname(name, namelen);
> }

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message