On 9/12/06, vladimir.moltchanov@xxxxxxxxx <vladimir.moltchanov@xxxxxxxxx> wrote:
Hi all, Can anybody provide an example of basic steps required under DCCP for Linux 2.6 implementation to create a simple listening socket? I have: Sk = socket(AF_INET, SOCK_DCCP, 0); ... ... Bind(); ... ... Int Buf_len=1400; Error = setsockopt(sk, SOL_DCCP, DCCP_SOCKOPT_PACKET_SIZE, &Buf_len, sizeof(Buf_len)); Setsockopt() fails with code 92 - (not supported, I believe). Apparently, I never reach dccp setsockopt() implementation. So, what am I missing? B.R. Vladimir.
I think you are missing using the service code. This question is best directed at dccp@xxxxxxxxxxxxxxx as it is Linux specific. Also look at http://linux-net.osdl.org If this doesn't make sense send me an e-mail and I'll send you some sample code I have. Ian -- Ian McDonald Web: http://wand.net.nz/~iam4 Blog: http://imcdnzl.blogspot.com WAND Network Research Group Department of Computer Science University of Waikato New Zealand