Testing up Markdown

Published in 2022-09-13


This is a test using Markdown language !

Here's a code sample to create an UDP socket, written in rust !

use std::net::UdpSocket;

fn main() -> std::io::Result<()> {
        let socket = UdpSocket::bind("")?;

        // Receives a single datagram message on the socket. If `buf` is too small to hold
        // the message, it will be cut off.
        let mut buf = [0; 10];
        let (amt, src) = socket.recv_from(&mut buf)?;

        // Redeclare `buf` as slice of the received data and send reverse data back to origin.
        let buf = &mut buf[..amt];
        socket.send_to(buf, &src)?;
    } // the socket is closed here
SyntaxDescriptionTest Text
HeaderTitleHere's this
ParagraphTextAnd more