fixed my previous very stupid mistakes.
This commit is contained in:
parent
bc14a7bf19
commit
ac0ee399ba
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
// constants
|
||||
// timeserver port is 8888
|
||||
#define TIMEPORT "8888"
|
||||
#define TIMEPORT 8888
|
||||
#define BUFFER_SIZE 1024
|
||||
|
||||
// prototypes
|
||||
|
|
@ -38,7 +38,7 @@ int main(int argc, char **argv)
|
|||
// while loop to see if the "time\r\n" has been received (recv call?)
|
||||
int clientAddrLen;
|
||||
int receivedDataLen;
|
||||
printf("Timeserver listening on port: %s\n", TIMEPORT);
|
||||
printf("Timeserver listening on port: %d\n", TIMEPORT);
|
||||
while(quitFlag)
|
||||
{
|
||||
// grab the data from the client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue