FreeRDP
namedPipeClient.c File Reference
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/file.h>
#include "../log.h"
#include <sys/statvfs.h>
#include "../handle/handle.h"
#include "../pipe/pipe.h"

Macros

#define TAG   WINPR_TAG("file")
 
#define NAMED_PIPE_PREFIX_PATH   "\\\\.\\pipe\\"
 

Functions

static BOOL NamedPipeClientIsHandled (HANDLE handle)
 
BOOL NamedPipeClientCloseHandle (HANDLE handle)
 
static int NamedPipeClientGetFd (HANDLE handle)
 
static HANDLE NamedPipeClientCreateFileA (LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
 
HANDLE_CREATORGetNamedPipeClientHandleCreator (void)
 
BOOL IsNamedPipeFileNameA (LPCSTR lpName)
 
char * GetNamedPipeNameWithoutPrefixA (LPCSTR lpName)
 
char * GetNamedPipeUnixDomainSocketBaseFilePathA ()
 
char * GetNamedPipeUnixDomainSocketFilePathA (LPCSTR lpName)
 
int GetNamePipeFileDescriptor (HANDLE hNamedPipe)
 

Variables

static HANDLE_CREATOR _NamedPipeClientHandleCreator
 
static HANDLE_OPS ops
 

Macro Definition Documentation

#define NAMED_PIPE_PREFIX_PATH   "\\\\.\\pipe\\"
#define TAG   WINPR_TAG("file")

WinPR: Windows Portable Runtime File Functions

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2014 Hewlett-Packard Development Company, L.P. Copyright 2015 Thincast Technologies GmbH Copyright 2015 bernh.nosp@m.ard..nosp@m.mikla.nosp@m.utz@.nosp@m.thinc.nosp@m.ast..nosp@m.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

HANDLE_CREATOR* GetNamedPipeClientHandleCreator ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

char* GetNamedPipeNameWithoutPrefixA ( LPCSTR  lpName)

Here is the call graph for this function:

Here is the caller graph for this function:

char* GetNamedPipeUnixDomainSocketBaseFilePathA ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

char* GetNamedPipeUnixDomainSocketFilePathA ( LPCSTR  lpName)

Here is the call graph for this function:

Here is the caller graph for this function:

int GetNamePipeFileDescriptor ( HANDLE  hNamedPipe)

Here is the call graph for this function:

BOOL IsNamedPipeFileNameA ( LPCSTR  lpName)

Here is the caller graph for this function:

BOOL NamedPipeClientCloseHandle ( HANDLE  handle)

Here is the call graph for this function:

static HANDLE NamedPipeClientCreateFileA ( LPCSTR  lpFileName,
DWORD  dwDesiredAccess,
DWORD  dwShareMode,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes,
DWORD  dwCreationDisposition,
DWORD  dwFlagsAndAttributes,
HANDLE  hTemplateFile 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int NamedPipeClientGetFd ( HANDLE  handle)
static

Here is the call graph for this function:

static BOOL NamedPipeClientIsHandled ( HANDLE  handle)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

HANDLE_CREATOR _NamedPipeClientHandleCreator
static
HANDLE_OPS ops
static
Initial value:
=
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}
static int NamedPipeClientGetFd(HANDLE handle)
Definition: namedPipeClient.c:94
BOOL NamedPipeWrite(PVOID Object, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten, LPOVERLAPPED lpOverlapped)
Definition: pipe.c:363
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
BOOL NamedPipeClientCloseHandle(HANDLE handle)
Definition: namedPipeClient.c:65
static BOOL NamedPipeClientIsHandled(HANDLE handle)
Definition: namedPipeClient.c:52
BOOL NamedPipeRead(PVOID Object, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped)
Definition: pipe.c:269