Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8408823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:44:15+00:00 2026-06-09T23:44:15+00:00

Which would be the best data structure to use in network manager to handle

  • 0

Which would be the best data structure to use in network manager to handle packet loss across the network?
I am sending packets from one system to another [server/UDP]. packets are collected[client/UDP] and then they must be used ordered and written into a file.

there are 2 threads in the client system:
1) handles the packet loss like duplicate packets,send signal on missing packets
2) gets few packets at a time and writes it into a file.

I am using python. Which data structure shall i use to store the packet?, i want to sliding window algorithm for this. maximum 5 buffers and each buffers should hold a maximum of 10 packets.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:44:17+00:00Added an answer on June 9, 2026 at 11:44 pm

    If you want to create packets at the byte level and manage the protocols yourself, you should probably use the equivalent of a C style struct, which is provided by the struct package: http://docs.python.org/library/struct.html. This gives you more control of the memory layout of your packets.

    If you don’t care about the memory layout, then you can just make your own class to hold the values you want.

    You can probably just use the built-in python lists to implement the sliding window. They can be used as a double-ended queue, for example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to determine which implementation of the data structure would be best
Which version of Linux would be my best choice if I want to use
I'm trying to decide which data structure to use for the following. Lets say
What is the best data structure I can use for my matrix that will
I'm trying to decide which method would be best for an internal linking structure
I wanted to know which would be best suitable - EDM or reflection provider
I would like to ask which is the best solution for integrating google maps
What would you suggest as the best server stack for a dedicated server which
Which is the best practice in this situation? I would like an un-initialized array
I have a label which would display strings from 0 ft to say 999

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.