Xref: utzoo comp.protocols.tcp-ip:9398 comp.unix.wizards:19569 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucla-cs!lynn!dieter From: dieter@lynn.cs.ucla.edu (Dieter Rothmeier) Newsgroups: comp.protocols.tcp-ip,comp.unix.wizards Subject: What is INADDR_LOOPBACK for in sockets? Message-ID: <29665@shemp.CS.UCLA.EDU> Date: 1 Dec 89 22:12:06 GMT Sender: news@CS.UCLA.EDU Reply-To: dieter@lynn.cs.ucla.edu (Dieter Rothmeier) Distribution: na Organization: UCLA Computer Science Department Lines: 16 While reading some code, I came across the following construct: struct sockaddr_in sin; .... sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); ... I know about INADDR_ANY, but I've never seen this one. It's defined in . I looked through the documentation (this is on a Sun 3/80) quite extensively, but couldn't find anything. Any help would be appreciated. Dieter Brought to you by Super Global Mega Corp .com