Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | nick_keighley_nospam@hotmail.com |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: High-level network programming: is C language suitable for that? |
| Date | 2012-04-27 07:27 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <16017213.710.1335536832168.JavaMail.geo-discussion-forums@vbmi19> (permalink) |
| References | <jnbudg$vhc$1@nnrp.ngi.it> <9vtng0Fs7gU1@mid.uni-berlin.de> |
On Thursday, April 26, 2012 8:54:40 PM UTC+1, Jens Thoms Toerring wrote: > pozz wrote: > > I'll start a new application in a short time and I'm wondering if C > > language is good enough for that. C's pretty much "good enough" for anything. Could you produce your application quicker using some other language? Maybe. > > The application will be simple: it should implement some TCP/UDP > > protocols (like TFTP, BOOTP,...) with a simple GUI. It will run on > > Windows platforms, but the possibility to run it on Linux would be nice. > > > Is C language suitable for this kind of applications? Which kind of > > cross-platform libraries should I use to manage IP protocols and simple > > GUIs? Could python or other high-level (script) languages be a better > > choice? python is certainly worth a look. It comes "out of the box" with socket and GUI libraries. It'll also run on multiple platforms, probably without change. Python can be a bit slow (which may not matter). > Of course, all this can be done in C (most scripting languages > are actually implemented in C, so everything you can do in > those languages can obviously be done in C). this is a theoretically true but practically useless. *All* real-world programming languages are "turing complete". Which (loosly) means if it can be programmed then it can be programmed in that language. We could implement python in COBOL (if we enjoyed kicking dead whales down beaches) but it wouldn't be fun. > But note that C > has no "native" support for networking or graphics, thus the > need for additional (cross-platform) libraries (unless you're > keen to re-invent the wheel;-). For TFTP and other protocols > libcurl seems to be a candidate to take a look at. I don't > know about BOOTP (wasn't that obsoleted by DHCP?). For gra- > phics the only cross-platform library for C I know about is > GTK+ (but I never used it) - most other seem to require C++. openGL, Qt > If using Python or some other scripting language would be pre- > ferable depends on what you want to do there, if you need max- > imum performance, and if you feel comfortable with that lan- > guage. Perhaps it might be a good idea to start with a scrip- > ting language and see if it does ok, otherwise you can still > re-implement the stuff in C, drawing on the experiences you > made. yes that is a good idea. You may get something working much quicker in Python.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
High-level network programming: is C language suitable for that? pozz <pozzugno@gmail.com> - 2012-04-26 18:50 +0200
Re: High-level network programming: is C language suitable for that? "Heinrich Wolf" <invalid@invalid.invalid> - 2012-04-26 19:03 +0200
Re: High-level network programming: is C language suitable for that? ImpalerCore <jadill33@gmail.com> - 2012-04-26 11:52 -0700
Re: High-level network programming: is C language suitable for that? jt@toerring.de (Jens Thoms Toerring) - 2012-04-26 19:54 +0000
Re: High-level network programming: is C language suitable for that? "BartC" <bc@freeuk.com> - 2012-04-27 10:02 +0100
Re: High-level network programming: is C language suitable for that? pozzugno@gmail.com - 2012-04-27 02:20 -0700
Re: High-level network programming: is C language suitable for that? nick_keighley_nospam@hotmail.com - 2012-04-27 07:27 -0700
Re: High-level network programming: is C language suitable for that? pozz <pozzugno@gmail.com> - 2012-04-27 17:07 +0200
Re: High-level network programming: is C language suitable for that? nick_keighley_nospam@hotmail.com - 2012-04-29 04:08 -0700
Re: High-level network programming: is C language suitable for that? TheGunslinger <mikiesrunsbaal.sec@sbcglobal.net> - 2012-04-29 12:57 -0700
Re: High-level network programming: is C language suitable for that? jt@toerring.de (Jens Thoms Toerring) - 2012-04-27 17:07 +0000
Re: High-level network programming: is C language suitable for that? nick_keighley_nospam@hotmail.com - 2012-04-29 04:15 -0700
Re: High-level network programming: is C language suitable for that? Rui Maciel <rui.maciel@gmail.com> - 2012-04-27 19:16 +0100
Re: High-level network programming: is C language suitable for that? jt@toerring.de (Jens Thoms Toerring) - 2012-04-27 22:37 +0000
Re: High-level network programming: is C language suitable for that? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-04-28 03:46 -0700
Re: High-level network programming: is C language suitable for that? nick_keighley_nospam@hotmail.com - 2012-04-29 04:37 -0700
Re: High-level network programming: is C language suitable for that? Robert Miles <milesrf@Usenet-News.net> - 2012-05-28 21:13 -0500
Re: High-level network programming: is C language suitable for that? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-04-27 00:57 -0700
Re: High-level network programming: is C language suitable for that? Rui Maciel <rui.maciel@gmail.com> - 2012-04-27 10:56 +0100
csiph-web