You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2016/11/04 02:55:59 UTC

[jira] [Updated] (PROTON-239) Porting Issue -- gethostname() is part of winsock library

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

Justin Ross updated PROTON-239:
-------------------------------
    Labels: build close-pending windows  (was: build windows)

> 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, close-pending, windows
>
> 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 driver.c.
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org