Add debugging task for VS Code
This allows you to launch the command line program into a debugger. This commit also tweaks the CI and fixes a small error in the build script.
This commit is contained in:
parent
02efa85a19
commit
b37086e8f6
6 changed files with 38 additions and 21 deletions
|
|
@ -2,6 +2,10 @@ use std::io::Result;
|
|||
use std::ptr;
|
||||
use widestring::{u16cstr, U16CString};
|
||||
|
||||
mod queue;
|
||||
|
||||
pub use queue::TunQueue;
|
||||
|
||||
pub struct TunInterface {
|
||||
wintun: sys::wintun,
|
||||
handle: sys::WINTUN_ADAPTER_HANDLE,
|
||||
|
|
|
|||
|
|
@ -1,19 +1 @@
|
|||
use crate::TunInterface;
|
||||
use std::os::unix::io::{AsRawFd, IntoRawFd, RawFd};
|
||||
|
||||
pub struct TunQueue {
|
||||
inner: crate::windows::sys::
|
||||
inner: socket2::Socket,
|
||||
}
|
||||
|
||||
impl AsRawFd for TunQueue {
|
||||
fn as_raw_fd(&self) -> RawFd {
|
||||
self.socket.as_raw_fd()
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoRawFd for TunQueue {
|
||||
fn into_raw_fd(self) -> RawFd {
|
||||
self.socket.into_raw_fd()
|
||||
}
|
||||
}
|
||||
pub struct TunQueue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue