FreeRDP
namedPipeClient.c File Reference
#include <winpr/config.h>
#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)
 
static 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

◆ NAMED_PIPE_PREFIX_PATH

#define NAMED_PIPE_PREFIX_PATH   "\\\\.\\pipe\\"

◆ TAG

#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

◆ GetNamedPipeClientHandleCreator()

HANDLE_CREATOR* GetNamedPipeClientHandleCreator ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNamedPipeNameWithoutPrefixA()

char* GetNamedPipeNameWithoutPrefixA ( LPCSTR  lpName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNamedPipeUnixDomainSocketBaseFilePathA()

char* GetNamedPipeUnixDomainSocketBaseFilePathA ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNamedPipeUnixDomainSocketFilePathA()

char* GetNamedPipeUnixDomainSocketFilePathA ( LPCSTR  lpName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNamePipeFileDescriptor()

int GetNamePipeFileDescriptor ( HANDLE  hNamedPipe)
Here is the call graph for this function:

◆ IsNamedPipeFileNameA()

BOOL IsNamedPipeFileNameA ( LPCSTR  lpName)
Here is the caller graph for this function:

◆ NamedPipeClientCloseHandle()

static BOOL NamedPipeClientCloseHandle ( HANDLE  handle)
static
Here is the call graph for this function:

◆ NamedPipeClientCreateFileA()

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:

◆ NamedPipeClientGetFd()

static int NamedPipeClientGetFd ( HANDLE  handle)
static
Here is the call graph for this function:

◆ NamedPipeClientIsHandled()

static BOOL NamedPipeClientIsHandled ( HANDLE  handle)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _NamedPipeClientHandleCreator

HANDLE_CREATOR _NamedPipeClientHandleCreator
static

◆ ops

HANDLE_OPS ops
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:109
static BOOL NamedPipeClientIsHandled(HANDLE handle)
Definition: namedPipeClient.c:49
static BOOL NamedPipeClientCloseHandle(HANDLE handle)
Definition: namedPipeClient.c:54
static int NamedPipeClientGetFd(HANDLE handle)
Definition: namedPipeClient.c:83
BOOL NamedPipeWrite(PVOID Object, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten, LPOVERLAPPED lpOverlapped)
Definition: pipe.c:342
BOOL NamedPipeRead(PVOID Object, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped)
Definition: pipe.c:249