rust TOKIO async TCP client and UDP logger example -- 2

Fullført Lagt ut 1 år siden Betales ved levering
Fullført Betales ved levering

Create a single example rust program using the tokio ([login to view URL]) async framework that implements the two following functions to interface to a networked device.

1. Async TCP client that connects to a device on TCP port 9760

a) Create an async reader function that reads messages from the device (not polling)

These messages are variable-length binary messages and must be read as bytes values (Not a text string).

Format in hex (<u8> 0x16, <u8> Length, <u8> 1 .. Length payload )

Messages are variable length unto 257 bytes (2-byte header + 255 bytes data)

Eg 16 04 00 0E 00 00

You need to read the first two bytes (ie 0x16, 0x04) to determine the variable payload length. The variable payload length is in the second byte, in this example case 4 bytes. Then you need to read the variable length payload to consume the entire message based on the length.

Display HEX dump of the bytes read for each full message.

Immediately re-queue async next read for the next message.

b) Create an async periodic timer, that every minute, sends a 2-byte binary message to the device, in hex 0x1600 on TCP port 9760.

2. In the same application create async logger listening on UDP port 30303 to log messages broadcast from the device.

   Read and display messages when received as text string - terminated (0xD, 0xA)  

I can make PCAP files (TCP and UDP) and the device available on the internet to test with for TCP code.

Provide all source and configuration files plus instructions to install on linux.

All code must be async not blocking or polling code.

RUST Programming Local Area Networking

Prosjekt-ID: #34409794

Om prosjektet

5 bud Eksternt prosjekt Aktiv 1 år siden

Tildelt til:

eurocomputerlan4

Hi, I can help with this Rust code. I'm an IT Engineer with more than 30 years of experience and each Rust task is a challenge for me!

$140 AUD på 7 dager
(0 omtaler)
0.0

5 frilansere byr i gjennomsnitt $126 for denne jobben

crazygeeks001

Hello Dear Client, after thoroughly reading your PROJECT DESCRIPTION i have clearly understood it and i would like to work with you. I am a skilled and experienced in the named SKILLS. I consider your project DOABLE as Mer

$120 AUD på 7 dager
(0 Omtaler)
0.0
gfabiano96

I work in automotive industry and I have experince on these kind of tasks, I know rust language and network infrastructures. I can do it in some days without problems.

$120 AUD på 4 dager
(0 Omtaler)
0.0
ExpertNetworkEng

Hello Dear, I am an Expert Network Engineer and I am working as Professor and Expert Consultant Network Engineer in a Multinational ISP. I have great hands-on experience for more than 15 years in various network tech Mer

$100 AUD på 1 dag
(0 Omtaler)
0.0