Skip to content

Commit

Permalink
Bid Request::receive [TCP] done
Browse files Browse the repository at this point in the history
  • Loading branch information
pereira0x committed Dec 8, 2023
1 parent 32480db commit 3864149
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,13 @@ void BidRequest::send(int fd) {

void BidRequest::receive(int fd) {
// Serverbound packets don't read their ID
userID = readString(fd);
readSpace(fd);
password = readString(fd);
readSpace(fd);
auctionID = readString(fd);
readSpace(fd);
bidValue = readInt(fd);
readPacketDelimiter(fd);
}

Expand Down

0 comments on commit 3864149

Please sign in to comment.