Browse Source

s/MTP/MTU/g

pull/1/head 0.1.2
Andreas Linz 5 years ago
parent
commit
bc52f91640
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      examples/receiver.rs
  2. +2
    -2
      src/decoder.rs

+ 1
- 1
examples/receiver.rs View File

@ -19,7 +19,7 @@ fn main() {
let sock = UdpSocket::bind(addr).unwrap();
println!("Listening to {}", addr);
let mut buf = [0u8; rosc::decoder::MTP];
let mut buf = [0u8; rosc::decoder::MTU];
loop {
match sock.recv_from(&mut buf) {

+ 2
- 2
src/decoder.rs View File

@ -7,8 +7,8 @@ use std::io::{Read, BufRead};
use byteorder::{BigEndian, ReadBytesExt};
/// Common MTP size for ethernet
pub const MTP: usize = 1536;
/// Common MTU size for ethernet
pub const MTU: usize = 1536;
/// Takes an byte slice as argument and returns an
/// OSC packet on success or an `OscError` if the slice

Loading…
Cancel
Save