C socket programming

This is a discussion on C socket programming within the C++ Programming forums, part of the General Programming Boards category; I've been trying to work on a client-server program that uses C/C++ sockets. But i've been having problems with the ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    1

    C socket programming

    I've been trying to work on a client-server program that uses C/C++ sockets. But i've been having problems with the compiler. The following header files:
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    file don't compile in MS visual Studio 6.0 OR Borland C++ compilers, giving me the error that these files could not be found.Please reply me soon on this thread or my email jaztom@hotmail.com
    Thankyou.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Those are UNIX headers, I believe you want to be using winsock.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    155
    Include <winsock.h>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. socket programming question, closing sockets...
    By ursula in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-31-2009, 06:17 PM
  2. Socket Help - Multiple Clients
    By project95talon in forum C Programming
    Replies: 5
    Last Post: 11-17-2005, 02:51 AM
  3. when to close a socket
    By Wisefool in forum Networking/Device Communication
    Replies: 5
    Last Post: 11-02-2003, 10:33 AM
  4. problem closing socket
    By Wisefool in forum Networking/Device Communication
    Replies: 2
    Last Post: 10-29-2003, 12:19 PM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 12:48 PM

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