Thread: Creating RDM sockets

  1. #1
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342

    Creating RDM sockets

    I tried to create an RDM socket in this manner :

    Code:
        if ((sockfd = socket(AF_INET, SOCK_RDM, 0)) == -1) {
                perror("socket");
                exit(1);
            }
    But, i got the following error message :

    Code:
      socket: Socket type not supported
    If I replace SOCK_RDM with SOCK_DGRAM, the program runs as expected.
    These are the included header files :
    Code:
      #include <stdio.h>
        #include <stdlib.h>
        #include <unistd.h>
        #include <errno.h>
        #include <string.h>
        #include <sys/types.h>
        #include <sys/socket.h>
        #include <netinet/in.h>
        #include <arpa/inet.h>
    Do i have to include any other file to create an RDM socket?
    In the middle of difficulty, lies opportunity

  2. #2
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    I seem to have the same problem even with SEQPACKET.
    In the middle of difficulty, lies opportunity

  3. #3
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    It turns out AF_INET does not support the two protocols ....
    In the middle of difficulty, lies opportunity

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. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. multiple UDP sockets with select()
    By nkhambal in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-17-2006, 07: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, 11:49 AM