GE-115 Emulator
An Emulator of the General Electrics GE-115 computer
Functions | Variables
console_socket.c File Reference
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include "console_socket.h"
#include "ge.h"
#include "console.h"
#include "log.h"

Go to the source code of this file.

Functions

static int console_socket_init (struct ge *ge, void *ctx)
 
static int console_socket_check (struct ge *ge, void *ctx)
 
int console_socket_register (struct ge *ge)
 

Variables

static const char socket_path [] = "/tmp/gemu.console"
 
static int console_socket_fd = -1
 
static struct ge_peri console_socket
 

Function Documentation

◆ console_socket_check()

static int console_socket_check ( struct ge ge,
void *  ctx 
)
static

Definition at line 40 of file console_socket.c.

◆ console_socket_init()

static int console_socket_init ( struct ge ge,
void *  ctx 
)
static

Definition at line 16 of file console_socket.c.

◆ console_socket_register()

int console_socket_register ( struct ge ge)

Definition at line 73 of file console_socket.c.

Variable Documentation

◆ console_socket

struct ge_peri console_socket
static
Initial value:
= {
.on_pulse = console_socket_check,
}
static int console_socket_check(struct ge *ge, void *ctx)
static int console_socket_init(struct ge *ge, void *ctx)

Definition at line 40 of file console_socket.c.

◆ console_socket_fd

int console_socket_fd = -1
static

Definition at line 14 of file console_socket.c.

◆ socket_path

const char socket_path[] = "/tmp/gemu.console"
static

Definition at line 13 of file console_socket.c.