This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::net; | |
use std::env; | |
fn listen(socket: &net::UdpSocket, mut buffer: &mut [u8]) -> usize { | |
let (number_of_bytes, src_addr) = socket.recv_from(&mut buffer).expect("no data received"); | |
println!("{:?}", number_of_bytes); | |
println!("{:?}", src_addr); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------- BUNDLE ------------------------------------ | |
" Plugin Manager: vim-plug | |
" Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged) | |
call plug#begin('~/.local/share/nvim/plugged') | |
" Make sure you use single quotes | |
" Deoplete is the abbreviation of "dark powered neo-completion". | |
" It provides an asynchronous keyword completion system in the current buffer. | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } |