Diff
Not logged in

Differences From Artifact [69395426af]:

To Artifact [7570a204ef]:


1
2
3
4
5
6
7
8
9
10
11

12
13
14






15
16
17
18
19
20
21
1
2
3
4
5
6
7
8
9
10

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27










-
+



+
+
+
+
+
+







/*
 * tclIOSock.c --
 *
 *	Common routines used by all socket based channel types.
 *
 * Copyright (c) 1995-1997 Sun Microsystems, Inc.
 *
 * See the file "license.terms" for information on usage and redistribution of
 * this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @(#) $Id: tclIOSock.c,v 1.7.4.5 2010/09/28 17:30:14 dgp Exp $
 * RCS: @(#) $Id: tclIOSock.c,v 1.7.4.6 2010/10/10 12:34:51 dgp Exp $
 */

#include "tclInt.h"

#if defined(_WIN32) && defined(UNICODE)
/* On Windows, we always need the ASCII version. */
#   undef gai_strerror
#   define gai_strerror gai_strerrorA
#endif

/*
 *---------------------------------------------------------------------------
 *
 * TclSockGetPort --
 *
 *	Maps from a string, which could be a service name, to a port. Used by