Skip to content
Snippets Groups Projects
Commit b028852a authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Added a FIXME comment

parent 1f8e2f4d
No related branches found
No related tags found
1 merge request!1Lento
...@@ -128,6 +128,7 @@ void Protocol::transmit(int sockt, int window){ ...@@ -128,6 +128,7 @@ void Protocol::transmit(int sockt, int window){
int messagesLeft = messages.size(); int messagesLeft = messages.size();
while(messagesLeft > 0){ while(messagesLeft > 0){
for(int j=0; j < window; ++j) { for(int j=0; j < window; ++j) {
// FIXME: this will probably brake with many messages
FrameItem fi = {.index = lastFramed++, .sent=false}; FrameItem fi = {.index = lastFramed++, .sent=false};
frame.push_back(fi); frame.push_back(fi);
if(!frame[j].sent){ if(!frame[j].sent){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment