Where is BSD socket functions defined on Linux?
What is the library f开发者_开发知识库ile name where BSD's socket(), recv(), send(), etc defined on Linux OS? (I'm using RedHat). Is the file located in /usr/lib?
They're in glibc (libc.so/libc.a). You don't need to link against anything special to use these functions on Linux.
精彩评论