Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site osiris.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!decvax!linus!philabs!cmcl2!seismo!umcp-cs!aplvax!osiris!marina From: marina@osiris.UUCP (Marina Arseniev) Newsgroups: net.unix-wizards Subject: bind() arguments Message-ID: <124@osiris.UUCP> Date: Thu, 14-Feb-85 17:32:42 EST Article-I.D.: osiris.124 Posted: Thu Feb 14 17:32:42 1985 Date-Received: Sun, 17-Feb-85 05:47:13 EST Distribution: net Organization: Johns Hopkins Hospital Lines: 24 How is the bind() call in 4.2BSD TCP/IP supposed to be used. In the bind call, what is the namelen parameter and in the sockaddr structure, how is sa_data used. My code looks like: main() { struct sockaddr LAB, *LABp; s = socket( AF_INET, SOCK_STREAM, 0 ); LAB.sa_family = AF_INET; strcpy( LAB.sa_data, "128.000.00.0"); LABp = &LAB; bind( s, LABp, ); } Please respond by mail. Thank you very much. -- marina ...!seismo!umcp-cs!aplvax!osiris!marina