Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F20064754
w32-sock-nonce.inc.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
w32-sock-nonce.inc.h
View Options
## w32-sock-nonce.inc.h - Include fragment to build assuan.h.
## Copyright (C) 2010 Free Software Foundation, Inc.
##
## This file is part of Assuan.
##
## Assuan is free software; you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License as
## published by the Free Software Foundation; either version 2.1 of
## the License, or (at your option) any later version.
##
## Assuan is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public
## License along with this program; if not, see <http:
//www.gnu.org/licenses/>.
##
##
## This file is included by the mkheader tool. Lines starting with
## a double hash mark are not copied to the destination file.
/* Assuan features an emulation of Unix domain sockets based on local
TCP connections. To implement access permissions based on file
permissions a nonce is used which is expected by the server as the
first bytes received. This structure is used by the server to save
the nonce created initially by bind. */
struct
assuan_sock_nonce_s
{
size_t
length
;
char
nonce
[
16
];
};
typedef
struct
assuan_sock_nonce_s
assuan_sock_nonce_t
;
/* Define the Unix domain socket structure for Windows. */
#ifndef _ASSUAN_NO_SOCKET_WRAPPER
# ifndef AF_LOCAL
# define AF_LOCAL AF_UNIX
# endif
# ifndef EADDRINUSE
# define EADDRINUSE WSAEADDRINUSE
# endif
struct
sockaddr_un
{
short
sun_family
;
unsigned
short
sun_port
;
struct
in_addr
sun_addr
;
char
sun_path
[
108-2-4
];
};
#endif
##EOF##
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Feb 23, 7:30 PM (1 d, 53 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
61/2a/a0ed6ab69a8e60b8e937830caf1f
Attached To
rA Assuan
Event Timeline
Log In to Comment