Skip navigation.
Home
The QNX Community Portal

View topic - SOCKET PROTOCOL

Page 1 of 1

SOCKET PROTOCOL

PostPosted: Fri Jun 23, 2017 10:25 am
by KYK
Hii, I want to know the header file where the socket protocols are defined...

Re: SOCKET PROTOCOL

PostPosted: Fri Jun 23, 2017 6:39 pm
by space
In QNX 6.3.2
Protocol families are #defined in /usr/include/sys/socket.h or /usr/qnx632/target/qnx6/usr/include/sys/socket.h
Protocols are #defined in /usr/include/netinet/in.h or /usr/qnx632/target/qnx6/usr/include/netinet/in.h

Re: SOCKET PROTOCOL

PostPosted: Mon Jun 26, 2017 6:16 am
by KYK
Hii,
Thank you for the reply..... Which protocol family and protocol I have to use to implement raw socket communication with Ethernet frame structure (Dest ADDR(MAC) + SRC ADDR(MAC) + ETHER TYPE + PAYLOAD).