FreeRDP
listener.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <winpr/crt.h>
#include <winpr/windows.h>
#include <freerdp/log.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/un.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <net/if.h>
#include <winpr/handle.h>
#include "listener.h"
#include "utils.h"

Macros

#define TAG   FREERDP_TAG("core.listener")
 

Functions

static BOOL freerdp_listener_open_from_vsock (freerdp_listener *instance, const char *bind_address, UINT16 port)
 
static BOOL freerdp_listener_open (freerdp_listener *instance, const char *bind_address, UINT16 port)
 
static BOOL freerdp_listener_open_local (freerdp_listener *instance, const char *path)
 
static BOOL freerdp_listener_open_from_socket (freerdp_listener *instance, int fd)
 
static void freerdp_listener_close (freerdp_listener *instance)
 
static DWORD freerdp_listener_get_event_handles (freerdp_listener *instance, HANDLE *events, DWORD nCount)
 
BOOL freerdp_peer_set_local_and_hostname (freerdp_peer *client, const struct sockaddr_storage *peer_addr)
 
static BOOL freerdp_check_and_create_client (freerdp_listener *instance, int peer_sockfd, const struct sockaddr_storage *peer_addr)
 
static BOOL freerdp_listener_check_fds (freerdp_listener *instance)
 
freerdp_listener * freerdp_listener_new (void)
 
void freerdp_listener_free (freerdp_listener *instance)
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("core.listener")

FreeRDP: A Remote Desktop Protocol Implementation RDP Server Listener

Copyright 2011 Vic Lee

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

◆ freerdp_check_and_create_client()

static BOOL freerdp_check_and_create_client ( freerdp_listener *  instance,
int  peer_sockfd,
const struct sockaddr_storage *  peer_addr 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_listener_check_fds()

static BOOL freerdp_listener_check_fds ( freerdp_listener *  instance)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_listener_close()

static void freerdp_listener_close ( freerdp_listener *  instance)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_listener_free()

void freerdp_listener_free ( freerdp_listener *  instance)
Here is the caller graph for this function:

◆ freerdp_listener_get_event_handles()

static DWORD freerdp_listener_get_event_handles ( freerdp_listener *  instance,
HANDLE *  events,
DWORD  nCount 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_listener_new()

freerdp_listener* freerdp_listener_new ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_listener_open()

static BOOL freerdp_listener_open ( freerdp_listener *  instance,
const char *  bind_address,
UINT16  port 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_listener_open_from_socket()

static BOOL freerdp_listener_open_from_socket ( freerdp_listener *  instance,
int  fd 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_listener_open_from_vsock()

static BOOL freerdp_listener_open_from_vsock ( freerdp_listener *  instance,
const char *  bind_address,
UINT16  port 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_listener_open_local()

static BOOL freerdp_listener_open_local ( freerdp_listener *  instance,
const char *  path 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_peer_set_local_and_hostname()

BOOL freerdp_peer_set_local_and_hostname ( freerdp_peer *  client,
const struct sockaddr_storage *  peer_addr 
)
Here is the caller graph for this function: