/UNP_PRACTICE

practice for unp

Primary LanguageC

UNP practice code

issue maybe happend in compiling time(OS Ubuntu)

  1. wrong data type inet_ntop.c:60:9: error: argument ‘size’ doesn’t match prototype

solve method: just change the size to socklen_t

  1. can't find header file unproute.h:3:45: fatal error: net/if_dl.h: No such file or directory

solve method: leave that alone, that's for BSD not for Linux

  1. /daytimetcpcli 127.0.0.1 connect error: Connection refused

solve method: complie the server and star the server first