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