aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_network.c
Commit message (Collapse)AuthorAgeFilesLines
* gallium/util: don't depend on implementation defined behavior in listen()Lucas Stach2019-10-181-1/+1
| | | | | | | | | | | | | | Using 0 as the backlog argument to listen() is exploiting implementation defined behavior and will lead to no connections being accepted on some libc implementations. Quote of the listen manpage: "A backlog argument of 0 may allow the socket to accept connections, in which case the length of the listen queue may be set to an implementation-defined minimum value." Fix this by using a more sensible backlog value. Signed-off-by: Lucas Stach <[email protected]>
* gallium/utils: drop PIPE_SUBSYSTEM_WINDOWS_USEREric Engestrom2019-08-021-5/+5
| | | | | | | This is basically just an alias for PIPE_OS_WINDOWS. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Matt Turner <[email protected]>
* util: use standard name for snprintf()Eric Engestrom2019-07-191-1/+1
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* gallium/util: put (void) in a few function signaturesBrian Paul2018-04-131-2/+2
| | | | | | | To match the header file. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Charmaine Lee <[email protected]>
* gallium/util: use sockets on PIPE_OS_UNIX in u_networkJonathan Gray2018-03-011-6/+3
| | | | | | | | Instead of listing all the UNIX PIPE_OS platforms just use PIPE_OS_UNIX. Makes BSD sockets available on PIPE_OS_BSD. Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* gallium/util: use util_snprintf() in u_socket_connect()Brian Paul2017-10-241-1/+2
| | | | | | | | | Instead of plain snprintf(). To fix the MSVC build. snprintf() is used in various places in Mesa/gallium, but apparently, not in code built with MSVC. Reviewed-by: Eric Engestrom <[email protected]>
* gallium/util: replace gethostbyname() with getaddrinfo()Brian Paul2017-10-231-13/+22
| | | | | | | | | | Compiling with MSVC options /we4995 /we4996 (a subset of /sdl) generates a warning that the gethostbyname() function is deprecated in favor of getaddrinfo() or GetAddrInfoW(). Replace the call with getaddrinfo(). Untested. There are no callers to u_socket_connect() in Gallium. Reviewed-by: Nicolai Hähnle <[email protected]>
* gallium/auxiliary/util: Solaris also has standard Unix socketsAlan Coopersmith2011-10-271-3/+6
| | | | | Signed-off-by: Alan Coopersmith <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* util: Add PIPE_OS_CYGWIN to u_network.Vinson Lee2010-07-231-1/+1
|
* gallium/util: Replace h_addr with h_addr_list[0].Vinson Lee2010-01-011-1/+1
| | | | Fixes compilation error on Mac OS.
* gallium/util: Add PIPE_OS_APPLE to u_network.Vinson Lee2009-12-221-3/+3
|
* gallium: Added HaikuOS platformaljen2009-09-091-3/+3
|
* util: Fix winsock include.Michal Krol2009-06-051-1/+1
|
* util: Add simple network functionsJakob Bornecrantz2009-06-011-0/+188