mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 20:09:59 +03:00
move server to src/
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
use std::{error::Error, fmt::{self, Display}};
|
||||
|
||||
pub mod server;
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum PointerEvent {
|
||||
Motion {
|
||||
|
||||
@@ -2,6 +2,7 @@ pub mod client;
|
||||
pub mod config;
|
||||
pub mod dns;
|
||||
pub mod event;
|
||||
pub mod server;
|
||||
|
||||
pub mod consumer;
|
||||
pub mod producer;
|
||||
|
||||
@@ -3,7 +3,7 @@ use std::{process, error::Error};
|
||||
use env_logger::Env;
|
||||
use lan_mouse::{
|
||||
consumer, producer,
|
||||
config::{Config, Frontend::{Cli, Gtk}}, event::server::Server,
|
||||
config::{Config, Frontend::{Cli, Gtk}}, server::Server,
|
||||
frontend::{FrontendListener, cli},
|
||||
};
|
||||
|
||||
|
||||
@@ -12,8 +12,7 @@ use tokio::net::TcpStream;
|
||||
use std::{net::SocketAddr, io::ErrorKind};
|
||||
|
||||
use crate::{client::{ClientEvent, ClientManager, Position, ClientHandle}, consumer::EventConsumer, producer::EventProducer, frontend::{FrontendEvent, FrontendListener, FrontendNotify, self}, dns::{self, DnsResolver}};
|
||||
// use crate::event::PointerEvent;
|
||||
use super::Event;
|
||||
use crate::event::Event;
|
||||
|
||||
/// keeps track of state to prevent a feedback loop
|
||||
/// of continuously sending and receiving the same event.
|
||||
Reference in New Issue
Block a user