Coder Social home page Coder Social logo

unpv13e's Issues

Unused parameters in lib files

I've noticed that in the lib folder that are at least a few files that take a socklen_t parameter. Notable examples of this are sock_cmp_addr, sock_cmp_port, and sock_get_port (although, there are others).

None of these functions actually use the socklen_t parameter. Moreover, the sockaddr_in and sockaddr_in6 structs have their on sa_len member. Any idea why the author required the socklen_t parameter despite not actually using it?

"libroute" doesn't compile in ubuntu.

After running "'/configure --prefix=pwd" a "make" in libroute gives the following error:

fatal error: net/if_dl.h: No such file or directory
3 | #include <net/if_dl.h> /* sockaddr_sdl{} */

do u have the unpv13e pdf book?

As the title said, I am looking for the pdf of UNIX NETWORK PROGRAMING ... it's very hard to find a free one on our net...

Compiling errors on vscode on macOS

/usr/bin/clang++ -std=gnu++14 -fcolor-diagnostics -fansi-escape-codes -g /Users/houzhiyang/Desktop/projectC/hw/socket.cpp -o /Users/houzhiyang/Desktop/projectC/hw/socket -std=c++11 -lunp
Undefined symbols for architecture x86_64:
"Bind(int, sockaddr const*, unsigned int)", referenced from:
_main in socket-5d6d69.o
"Close(int)", referenced from:
_main in socket-5d6d69.o
"Write(int, void*, unsigned long)", referenced from:
_main in socket-5d6d69.o
"Accept(int, sockaddr*, unsigned int*)", referenced from:
_main in socket-5d6d69.o
"Listen(int, int)", referenced from:
_main in socket-5d6d69.o
"Socket(int, int, int)", referenced from:
_main in socket-5d6d69.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What should I do?I have tried adding the - lunp option, but nothing to happen

The code can not compile on MacOS

When I compiled the code on MacOS 10.15.3
I got the error as shown below

sunjiantaodeAir:libfree bryan$ make
gcc -I../lib -g -O2 -D_REENTRANT -Wall -c -o in_cksum.o in_cksum.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall -c -o inet_ntop.o inet_ntop.c
gcc -I../lib -g -O2 -D_REENTRANT -Wall -c -o inet_pton.o inet_pton.c
ar rv ../libunp.a in_cksum.o inet_ntop.o inet_pton.o
a - in_cksum.o
a - inet_ntop.o
a - inet_pton.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../libunp.a(inet_ntop.o) has no symbols
ranlib ../libunp.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../libunp.a(inet_ntop.o) has no symbols

Could you please give some help?
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.