This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Developing a server


>
>
>This question is definitely not off-topic.
>
Yes it is.

>It is very much a GNU GCC related question,
>because the set of networking libraries that
>gcc implements is not available in any other
>Linux based C or C++ compiler such as GNU Bison
>or yacc. Only GCC users will be able to tell me
>how to create a socket using the networking
>library header files that come along with GCC.
>
1) GCC does not 'implement' any networking library. You are refering to 
the GNU libc, which can be used with other C/C++ compilers.
2) Bison & yacc are not C/C++ compilers.
3) The networking API (Application Programming Interface) that you are 
refering to is the BSD socket API. It'sa standard Unix API, and thus any 
Unix programmer with a bit of network experience will be able to help 
you. Windows uses a different API, but the basic operations (create a 
socket, bind it, send and receive data, ...) are performed the same way.
4) For documentation about the BSD socket API, try 'man socket' and read 
further.
5) You'll need to implement an HTTP server. Find the HTTP RFC (Request 
For Comment) on the web (RFC 1945 for HTTP/1.0), read it, understand it, 
and then decide what you want to do.

Laurent Pinchart



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]