Find Jobs
Hire Freelancers

Data Packet Queue

$30-250 USD

Concluído
Publicado há mais de 8 anos

$30-250 USD

Pago na entrega
We have recently discovered that our Android app is overloading our server, now that our user base has increased. To alleviate this problem, we need to throttle back on the data we are sending to the server so that we send no more than 1024 bytes at a time, and no more often than 30 times per second. Our packets are guaranteed to be no larger than 800 bytes each, and must be sent in their entirety. You may assume that no packet is of higher priority than any other packet. Each packet will need a header in network byte order that contains the string “PKT_”, followed by a 4-byte unsigned integer that gives the packet size, not including the header. Packets can be concatenated together for a single network send via TransmitData(). Any packets that cannot be sent must be queued up until the next opportunity to send them. Implement PacketManager with the packet throttling described above to handle this situation. We will call the PacketManager’s Update() method on a semi-regular basis, and pass it a floating point parameter that specifies the amount of time in seconds that has elapsed since the last time we called it. A NetworkConnection class exists that implements the method to send data to the server. You can assume the connection to the server and any user authentication has already been handled. In C++ your prototypes would be: // This class is already implemented, and may be called by your code. class NetworkConnection { public: static void TransmitData (unsigned char * dataHead, int dataSize); }[g] // You can start with this class and expand it as needed. class PacketManager { public: void Update (float secondsSinceLastUpdate); void Send (unsigned char * packetHead, int packetSize); }
ID do Projeto: 8179919

Sobre o projeto

2 propostas
Projeto remoto
Ativo há 9 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hello I'm interesting your project very well I'm a Good C/C++, Java, Algorithm expert. I understand your req exactly. I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Thanks
$150 USD em 2 dias
4,9 (148 avaliações)
7,0
7,0
2 freelancers estão ofertando em média $153 USD for esse trabalho
Avatar do Usuário
Hello. How are you? I saw your description . I understand it and can do it well. I have done several project like this. I'm an expert in Data Structures and Algorithms. And I know Java ,C/C++ and Python well. I'm interested this project. I want to discuss with you about this project. If it's possible,please contact me and explain more detail. I wait your good reply. Bye. Huang
$105 USD em 2 dias
4,9 (35 avaliações)
4,2
4,2
Avatar do Usuário
Hi, I work on linux and have a cross compiler for Android. I am a network programmer for some local business here in Nyc where I live.
$155 USD em 3 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
dallas, United States
5,0
21
Método de pagamento verificado
Membro desde set. 11, 2013

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.