Creating RDM sockets

This is a discussion on Creating RDM sockets within the Linux Programming forums, part of the Platform Specific Boards category; I tried to create an RDM socket in this manner : Code: if ((sockfd = socket(AF_INET, SOCK_RDM, 0)) == -1) ...

  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, 02:43 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 10: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, 05:52 AM
  5. Starting window sockets
    By _Cl0wn_ in forum Windows Programming
    Replies: 2
    Last Post: 01-20-2003, 11:49 AM

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