From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 27 11:06:03 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2E4016A418 for ; Tue, 27 Nov 2007 11:06:03 +0000 (UTC) (envelope-from cyber.spike@yahoo.com) Received: from n3b.bullet.mail.tp2.yahoo.com (n3b.bullet.mail.tp2.yahoo.com [203.188.202.110]) by mx1.freebsd.org (Postfix) with SMTP id 1D51213C45D for ; Tue, 27 Nov 2007 11:06:02 +0000 (UTC) (envelope-from cyber.spike@yahoo.com) Received: from [202.43.196.224] by n3.bullet.mail.tp2.yahoo.com with NNFMP; 27 Nov 2007 10:53:04 -0000 Received: from [68.142.237.88] by t1.bullet.tpe.yahoo.com with NNFMP; 27 Nov 2007 10:53:04 -0000 Received: from [209.191.108.96] by t4.bullet.re3.yahoo.com with NNFMP; 27 Nov 2007 10:53:04 -0000 Received: from [209.191.119.173] by t3.bullet.mud.yahoo.com with NNFMP; 27 Nov 2007 10:53:04 -0000 Received: from [127.0.0.1] by omp104.mail.mud.yahoo.com with NNFMP; 27 Nov 2007 10:53:04 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 830469.88913.bm@omp104.mail.mud.yahoo.com Received: (qmail 15530 invoked by uid 60001); 27 Nov 2007 09:31:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=6pR6XVUtLywaoGsfklNTdpNnqtlClG9ts6m3cDohvK4y7bbb0jsGx8BLVvHu7gXxYS9+MybGHAvmOH4X+B7hiMGE3u90+ZrLvnZK1WuifYqy8u9J0SQbq8TQSCRpzWfkzKjRdvS7HJWqCJCPiQ/r0f1q+pWRIxH177YlyrvX7o0=; X-YMail-OSG: 0VHuseUVM1lGqlXl9YgSIY1CCNQ1fCbLKtYhBjhLfVxl92kBBJqnOQCvI52CMyMb.ZOi8H5iztsnou5BPKpoA88KVR_9ckVExl_x Received: from [59.93.161.0] by web45613.mail.sp1.yahoo.com via HTTP; Tue, 27 Nov 2007 01:31:22 PST X-Mailer: YahooMailRC/818.27 YahooMailWebService/0.7.157 Date: Tue, 27 Nov 2007 01:31:22 -0800 (PST) From: sourav das To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-ID: <360166.14926.qm@web45613.mail.sp1.yahoo.com> X-Mailman-Approved-At: Tue, 27 Nov 2007 12:18:56 +0000 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: how to write a raw socket server using UDP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2007 11:06:03 -0000 hello all, i m a new comer. i wrote a raw socket client using setsockopt (sock, IPPROTO_IP. IPHDRINCL, ....)using UDP. ihave followed MS_Press network programming . it is showing 19 bytes sent successfully. when trying to send more than 19 bytes using sendto(sock, ...) function , it is showing socket error on sending. i want to know how to write a raw socket server program so that to catch and display the data sent by the client. thanks a lot, keep fit, regards, spike. ____________________________________________________________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ