This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Developing a server
- From: Laurent Pinchart <laurent dot pinchart at capflow dot com>
- To: gcc-help-return-8503-laurent dot pinchart=capflow dot com at gcc dot gnu dot org
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 04 Apr 2002 09:32:56 +0200
- Subject: Re: Developing a server
- References: <2913640.1017897198689.JavaMail.Administrator@COMPUTER4>
- Reply-to: laurent dot pinchart at capflow dot com
>
>
>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