473,320 Members | 1,695 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,320 software developers and data experts.

network programming in C

I have done some regular C programming and still learning. I was
wondering if you could guide me through good resources for thread
programming and socket programming in C. I have done something in
python but now I want to do it in C.

Every help is appreciated.

Mar 6 '07 #1
6 2701
DanielJohnson said:
I have done some regular C programming and still learning. I was
wondering if you could guide me through good resources for thread
programming and socket programming in C. I have done something in
python but now I want to do it in C.
It's off-topic here, so I absolutely definitely cannot tell you to get
"Unix Network Programming", Volume 1, by W Richard Stevens. I
absolutely definitely cannot tell you that the above advice holds good
even if you're using Windows, since the book is The Best Book and its
advice is *mostly* portable to Win32. I absolutely definitely cannot
mention Quinn or Shute, either. And I absolutely definitely cannot tell
you that with a little care you can write a remarkably thin abstraction
layer to sit on the sockets, so that your application code can remain
portable.

Oh, I nearly forgot to mention that I absolutely definitely can't tell
you that Stevens also covers threads (although I don't quite recall
which Stevens the thread stuff is in, since I so rarely bother with
threads).

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 6 '07 #2
Richard Heathfield <rj*@see.sig.invalidwrites:
DanielJohnson said:
I have done some regular C programming and still learning. I was
wondering if you could guide me through good resources for thread
programming and socket programming in C. I have done something in
python but now I want to do it in C.

It's off-topic here, so I absolutely definitely cannot tell you to get
"Unix Network Programming", Volume 1, by W Richard Stevens. I
absolutely definitely cannot tell you that the above advice holds good
even if you're using Windows, since the book is The Best Book and its
advice is *mostly* portable to Win32. I absolutely definitely cannot
mention Quinn or Shute, either. And I absolutely definitely cannot tell
you that with a little care you can write a remarkably thin abstraction
layer to sit on the sockets, so that your application code can remain
portable.

Oh, I nearly forgot to mention that I absolutely definitely can't tell
you that Stevens also covers threads (although I don't quite recall
which Stevens the thread stuff is in, since I so rarely bother with
threads).
I seem to remember that it is in the second volume of Unix Network
Programming and that some material has also been added in the edition of
Advanced Programming in the Unix Environment revised by Stephen A. Rago.
But can I wrote it here ?

Yours,

--
Jean-Marc
Mar 6 '07 #3
Jean-Marc Bourguet said:
Richard Heathfield <rj*@see.sig.invalidwrites:
<snip>
>>
Oh, I nearly forgot to mention that I absolutely definitely can't
tell you that Stevens also covers threads (although I don't quite
recall which Stevens the thread stuff is in, since I so rarely bother
with threads).

I seem to remember that it is in the second volume of Unix Network
Programming and that some material has also been added in the edition
of Advanced Programming in the Unix Environment revised by Stephen A.
Rago. But can I wrote it here ?
Absolutely not. How could you countenance such an idea? It's completely
off-topic. The OP would be better off asking in a newsgroup devoted to
his platform, such as

<news:comp.unix.programmer>
<news:comp.os.ms-windows.programmer.win32>
<news:comp.sys.apple2.programmer>

But yes, I think you're right that it's in UNP2.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 6 '07 #4
<news:comp.unix.programmer>
<news:comp.os.ms-windows.programmer.win32>
<news:comp.sys.apple2.programmer>

But yes, I think you're right that it's in UNP2.
Thanks, I needed for the Unix platform. I got the idea, and really
appreciate it.

Mar 6 '07 #5
Richard Heathfield <rj*@see.sig.invalidwrites:
DanielJohnson said:
>I have done some regular C programming and still learning. I was
wondering if you could guide me through good resources for thread
programming and socket programming in C. I have done something in
python but now I want to do it in C.

It's off-topic here, so I absolutely definitely cannot tell you to get
"Unix Network Programming", Volume 1, by W Richard Stevens. I
absolutely definitely cannot tell you that the above advice holds good
even if you're using Windows, since the book is The Best Book and its
advice is *mostly* portable to Win32. I absolutely definitely cannot
mention Quinn or Shute, either. And I absolutely definitely cannot tell
you that with a little care you can write a remarkably thin abstraction
layer to sit on the sockets, so that your application code can remain
portable.

Oh, I nearly forgot to mention that I absolutely definitely can't tell
you that Stevens also covers threads (although I don't quite recall
which Stevens the thread stuff is in, since I so rarely bother with
threads).
A much better book for threads is Programming With POSIX Threads by Butenhof.
Mar 10 '07 #6
On Fri, 9 Mar 2007 17:59:57 -0500, Richard wrote
(in article <87************@gmail.com>):
Richard Heathfield <rj*@see.sig.invalidwrites:
>DanielJohnson said:
>>I have done some regular C programming and still learning. I was
wondering if you could guide me through good resources for thread
programming and socket programming in C. I have done something in
python but now I want to do it in C.

It's off-topic here, so I absolutely definitely cannot tell you to get
"Unix Network Programming", Volume 1, by W Richard Stevens. I
absolutely definitely cannot tell you that the above advice holds good
even if you're using Windows, since the book is The Best Book and its
advice is *mostly* portable to Win32. I absolutely definitely cannot
mention Quinn or Shute, either. And I absolutely definitely cannot tell
you that with a little care you can write a remarkably thin abstraction
layer to sit on the sockets, so that your application code can remain
portable.

Oh, I nearly forgot to mention that I absolutely definitely can't tell
you that Stevens also covers threads (although I don't quite recall
which Stevens the thread stuff is in, since I so rarely bother with
threads).

A much better book for threads is Programming With POSIX Threads by Butenhof.
Agreed, in fact, it's probably the only dedicated book out there on the
topic of pthreads worth the price of admission.

--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Mar 19 '07 #7

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

Similar topics

8
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
1
by: mch2k2 | last post by:
Hello All I have just started working on Pyhton. I need urgent help regarding Python Network Programming. I want the elctronic version of the Book: Foundations of Python Network programming by...
3
by: Jay | last post by:
Hi, I implemeneted an FTP client and server long time back using Java. I found sockets porgramming in java quite useful and easy to handle. I now wanted to implement a similar program using C++....
6
by: John Walton | last post by:
Hello, everyone. I just began school, and they already assigned us science fair. Since I'm in 8th grade, I get to do demonstrations for our projects. I'm probably going to demonstrate Python's...
2
by: Jesse Engle | last post by:
i'm learning how to do some basic low-level network programming. the site i'm reading talks about "network byte order" and "host byte order". the thing is, it doesn't give an explanation as to what...
4
by: Wayne M J | last post by:
I have "Professional .Net Network Programming" and "Network Programming for MS Windows 2nd Ed", but I find both of these to be lacking in what I am looking for. Has there been any books printed...
5
by: Terry | last post by:
Could someone please suggest me a good book to learn network programming. I have been programming in C#/VB.NET/VB 6.0 and have also used a bit of C++ (not MFC/ATL/COM) I am a total novice when...
6
by: Eric | last post by:
Does anyone know of any GOOD network programming book(s) that are C# based, as well as any online tutorials and forums on network programming? Thanks
2
by: ppuniversal | last post by:
Hello, Can someone tell a good Tutorial on Network Programming in C++, except Beej's Guide and Vijay Mukhi's tutorials. I want to make a Client Server application in C++ which will involve...
9
by: Mex | last post by:
Hi, I'm looking for a good book for beginners about Network Programming. Besides Stevens' book, I would like something specific for C++ language. Any suggestions? Thanks in advantage, Massimo
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.