Thread: Where to start??

  1. #1
    Master n00b Matty_Alan's Avatar
    Join Date
    Jun 2007
    Location
    Bloody Australia Mate!
    Posts
    96

    Where to start??

    I'm thinking about starting to touch on network programming, and iv'e read a few little bit here and there on the basic thorey, but I'm just looking for direction for it; is socket programming the only way to program networks or are there other ways? What should I be looking into are there any good tutorials online or books?, 'speshally ones focused on windows? Whats a good program to try and build to gain experiance from... lol so many questions any advice would be better then what i already have

    Cheers Matty.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    - Read the intro threads in this forum
    - Discover "beej"
    - ....
    - Success!
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    Yeah but as good as Beej is, it is not focused on Windows (although personally I would not suggest going to Winsock route but that is me...BSD socket coding is useful in far more places than Winsock coding is). But if you want to learn real network programming and not just Windows Beej's is about the best tutorials on the net....
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

  4. #4
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Matty_Alan View Post
    is socket programming the only way to program networks or are there other ways?
    Maybe not quite, but virtually all real world networking applications use the socket layer. And you would want to understand that first in any case.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  5. #5
    Master n00b Matty_Alan's Avatar
    Join Date
    Jun 2007
    Location
    Bloody Australia Mate!
    Posts
    96
    Yea iv'e already started to read beej's guide, it was recomended on another thread seems to be pretty easy to understand. but i noticed it was more unix based ,so i thought there might be something more orientated toward windows programmers but either way it's all good

  6. #6
    Registered User
    Join Date
    Mar 2005
    Location
    Juneda
    Posts
    291
    Also you can take a look at “ http://www.vijaymukhi.com/vmis/vmchap4.htm ”
    that's a winsock tutorial that covers the basics for a client in windowed mode, an asynchronous server, and some other samples and networking theory; the bad point is that the variables and functions are named as 'a', 'b', 'zzz'...

    And of course on the MSDN there are the list and explanation for all the net functions; and if you want you can get from the net 'Windows Sockets 2 Application Program Interface' (is the winsock2 reference manual as help file hlp). And of course you will find lots of links googling for winsock programming And if you want to do something in few time you can take a look at wininet library, you won't learn about networking but you'll develop you applications faster.

    For the beej guide, for winsocks there are one important point: initialize and uninitialize the sockets dll, the other code is the same (except for the asynchorous net-messages processing, and maybe that you have to remember to memset all the unused data on structs to 0).

    Hope that helps
    Niara

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Adventures in labyrinth generation.
    By guesst in forum Game Programming
    Replies: 8
    Last Post: 10-12-2008, 01:30 PM
  3. C++ gui for windows where to start
    By prixone in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2006, 11:48 PM
  4. GNOME Desktop won't start (Mandriva)
    By psychopath in forum Tech Board
    Replies: 10
    Last Post: 07-19-2006, 01:21 PM
  5. Start bar color in WinXP
    By confuted in forum Tech Board
    Replies: 4
    Last Post: 05-03-2003, 06:18 AM