From owner-freebsd-questions Sat Oct 19 13:14:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6E6E37B401 for ; Sat, 19 Oct 2002 13:14:10 -0700 (PDT) Received: from mail1.aus1.texas.net (mail1.aus1.texas.net [206.127.30.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 203C843E77 for ; Sat, 19 Oct 2002 13:14:10 -0700 (PDT) (envelope-from dread@texas.net) Received: from localhost.texas.net (tcnet26-018.austin.texas.net [209.99.98.18]) by mail1.aus1.texas.net (8.11.6/8.11.6) with ESMTP id g9JKCx524441; Sat, 19 Oct 2002 15:13:00 -0500 (CDT) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3DB13F5D.1060908@uni-svishtov.bg> Date: Sat, 19 Oct 2002 15:12:59 -0500 (CDT) From: Don Read To: Angelin Lazarov Lalev Subject: RE: C programming help ? Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 19-Oct-2002 Angelin Lazarov Lalev wrote: > I need to convert some bytes, which are not an internet address, from > machine to network byte order (described in RFC1700). I could do it > mannualy, assuming a I386 (or some other) architecture, but then my code > will be a lot less portable. Is there any function in libc or somewhere > else which will do that conversion for me (and will be updated when new > architecture is added)? > > RFC 1014 man xdr Regards, -- Don Read dread@texas.net -- "Beer is proof that God loves us and wants us to be happy." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message