473,395 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

What are the standard network functions provided in standard C?

Hi guys,
I am planning to write a web crawler in standard C. I can't seem to
find standard libraries provided by C that deals with networks and
regular expression. Anyone here knows a good engine that deals with
regular expression in C and/or functions that deals with networking in
standard C?

Jun 27 '08 #1
5 1985
On 10 Jun 2008 at 17:13, di***********@gmail.com wrote:
I am planning to write a web crawler in standard C. I can't seem to
find standard libraries provided by C that deals with networks and
regular expression. Anyone here knows a good engine that deals with
regular expression in C
The POSIX regular expression functions regcomp, regexec, regerror,
regfree might be a good starting point.
and/or functions that deals with networking in standard C?
For a web crawler, libcurl would be a good choice.

Jun 27 '08 #2
On Jun 10, 1:13*pm, disappeare...@gmail.com wrote:
Hi guys,
I am planning to write a web crawler in standard C. I can't seem to
find standard libraries provided by C that deals with networks and
regular expression. Anyone here knows a good engine that deals with
regular expression in C and/or functions that deals with networking in
standard C?
Mu. Networking is not covered by the C standard; it is covered by
other standards such as POSIX and SUS, as well as by platform APIs
like Winsock or NSSocket.

Likewise regular expressions.

-o
Jun 27 '08 #3
In article <cd**********************************@f63g2000hsf. googlegroups.com>,
<di***********@gmail.comwrote:
>I am planning to write a web crawler in standard C. I can't seem to
find standard libraries provided by C that deals with networks and
regular expression. Anyone here knows a good engine that deals with
regular expression in C and/or functions that deals with networking in
standard C?
There are no standard C libraries that deal with networking: networking
is -always- system dependant. You might get lucky and find
a networking library that deals with all of the operating systems
that you are interested in.

Regular expressions are text processing, so you should be able to
find portable regular expression libraries; C itself doesn't happen
to provide any.

--
"I will speculate that [...] applications [...] could actually see a
performance boost for most users by going dual-core [...] because it
is running the adware and spyware that [...] are otherwise slowing
down the single CPU that user has today" -- Herb Sutter
Jun 27 '08 #4
On Jun 10, 10:13*am, disappeare...@gmail.com wrote:
Hi guys,
I am planning to write a web crawler in standard C. I can't seem to
find standard libraries provided by C that deals with networks and
regular expression. Anyone here knows a good engine that deals with
regular expression in C and/or functions that deals with networking in
standard C?
There aren't any. The answer is to use a library. This one is nice:
http://legacy.imatix.com/html/sfl/

Unfortunately, it looks like nobody is putting any effort into it
these days. It would be nice if it would get hosted on SourceForge.
Jun 27 '08 #5
mb
On Jun 10, 11:13 am, disappeare...@gmail.com wrote:
Anyone here knows a good engine that deals with
regular expression in C and/or functions that deals with networking in
standard C?
Neither of the below are standard C, but work on a many platforms:

http://www.gnetlibrary.org
"GNet is a simple network library. It is written in C, object-
oriented, and built upon GLib. It is intended to be easy to use and
port. GNet comes with documentation and examples. It is licensed under
the GNU Library General Public License."

"GNet has been ported to Linux, *BSD, MacOSX, Solaris, HP, and
Windows. It may work on other flavors of Unix too."

http://library.gnome.org/devel/glib/
GLib wraps the PCRE regular expression library into an easier to use
interface, and it includes all sorts of utility functions/abstractions
like containers, threading, strings, etc.
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
2
by: Thomas G. Marshall | last post by:
Arthur J. O'Dwyer <ajo@nospam.andrew.cmu.edu> coughed up the following: > On Thu, 1 Jul 2004, Thomas G. Marshall wrote: >> >> Aside: I've looked repeatedly in google and for some reason cannot >>...
51
by: jacob navia | last post by:
I would like to add at the beginning of the C tutorial I am writing a short blurb about what "types" are. I came up with the following text. Please can you comment? Did I miss something? Is...
1
by: Thomas Holmgren | last post by:
Hi all I've tried to get my hands on the End User License Agreement for MS Visual C# .NET 2003 STANDARD edition, sofar without luck. Does anybody know where I can find the license agreement...
2
by: Leonardo D'Ippolito | last post by:
Hi! I have two .NET win apps that need to communicate on a TCP/IP network. 'App A' must ask 'app B' if it's allowed to do some task, and 'app B' must authorize or prohibit it. How can I do...
11
by: santosh | last post by:
Library Functions provided by the compiler, are they portable? i.e. is there any ANCI C standards for these functions. eg. getch() function defined in <conio.h> header file works fine in windows...
9
by: Cao Yi | last post by:
Hi, here's a fract of codes, and what's the line "scanf("%lf%*", &cvi)" doing? ============================= do { printf("\nCoefficient: "); scanf("%lf%*", &cvi); getchar(); } while (cvi <=...
270
by: jacob navia | last post by:
In my "Happy Christmas" message, I proposed a function to read a file into a RAM buffer and return that buffer or NULL if the file doesn't exist or some other error is found. It is interesting...
32
by: Stephen Horne | last post by:
I've been using Visual C++ 2003 for some time, and recently started working on making my code compile in GCC and MinGW. I hit on lots of unexpected problems which boil down to the same template...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.