Sockets

This is a discussion on Sockets within the C Programming forums, part of the General Programming Boards category; So I've been reading through the FAQ trying to refresh myself on some C stuff. I've never used sockets and ...

  1. #1
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429

    Sockets

    So I've been reading through the FAQ trying to refresh myself on some C stuff. I've never used sockets and I'm wondering if someone could give me some help.

    Under this, it shows help with sockets, but it's listed under the UNIX section. So... I'm wondering... do sockets exist under windows?

    How do you connect and talk to specific ports?

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Found this with a search.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    In windows you use winsock.h Pretty much everything is the same unless you start using some of the Win32 stuffs.

    In Beej's Guide he makes mention of what you need to do.

  4. #4
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    OK, thanks guys. I've played with Winsock in VB before... didn't know it was available in C, or that it was called the same.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Best way to poll sockets?
    By 39ster in forum Networking/Device Communication
    Replies: 3
    Last Post: 07-22-2008, 01:43 PM
  2. Cross platform sockets
    By zacs7 in forum Networking/Device Communication
    Replies: 5
    Last Post: 06-27-2007, 05:16 AM
  3. multiple UDP sockets with select()
    By nkhambal in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-17-2006, 06:36 PM
  4. Raw Sockets and SP2...
    By Devil Panther in forum Networking/Device Communication
    Replies: 11
    Last Post: 08-12-2005, 04:52 AM
  5. Starting window sockets
    By _Cl0wn_ in forum Windows Programming
    Replies: 2
    Last Post: 01-20-2003, 10:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21