LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2018, 10:01 AM   #1
turay
LQ Newbie
 
Registered: Sep 2017
Posts: 22

Rep: Reputation: Disabled
Should i study python sockets before learning c sockets?


Should i study python sockets before learning c sockets?
or can i learn it with c easily?
 
Old 03-03-2018, 11:31 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,945

Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
no, I would say learn about sockets in c first, and next you can use it in python/perl/whatever.
But obviously it depends on your knowlegde, if you wish to learn only python/c/perl/whatever, do that.
 
1 members found this post helpful.
Old 03-04-2018, 02:12 AM   #3
briselec
Member
 
Registered: Jun 2013
Location: Ipswich, Australia
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
If you are already familiar with c then learning socket programming in c won't be difficult
 
1 members found this post helpful.
Old 03-04-2018, 03:42 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Python sockets are C sockets, just called from Python using Python syntax.

If you intended to code them in C, which is what it sounds like to me, then learn them in C first. Then you can just skim the Python syntax for them if you want to switch to Python.
 
1 members found this post helpful.
Old 03-04-2018, 05:16 AM   #5
turay
LQ Newbie
 
Registered: Sep 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thank you all,
where to start learning c sockets?
 
Old 03-04-2018, 05:37 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,945

Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
just google a tutorial like this: https://www.tutorialspoint.com/unix_sockets/index.htm or this: https://www.binarytides.com/socket-p...inux-tutorial/
 
2 members found this post helpful.
Old 03-04-2018, 06:30 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by pan64 View Post
Thanks for these links I was looking for this some time ago and couldn't find a decent tutorial.
 
Old 03-04-2018, 03:40 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Quote:
Originally Posted by turay View Post
Thank you all,
where to start learning c sockets?
Beej's Guide to Network Programming
 
Old 03-05-2018, 05:19 AM   #9
turay
LQ Newbie
 
Registered: Sep 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
pan64, dugan thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question about python and sockets.. as the accept line() exacutes program hangs xskycamefalling Programming 1 02-14-2010 02:44 PM
question about python and sockets.. as the accept line() exacutes program hangs xskycamefalling Programming 1 02-10-2010 06:32 PM
[python] reading non-blocking sockets with makefile Ephracis Programming 0 02-25-2009 06:22 PM
Program to forward tcp sockets to unix domain sockets mikepol Linux - Networking 0 09-27-2007 09:49 AM
java's sockets or python's friendlier to use? Dominik Programming 2 03-06-2004 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration