From owner-freebsd-questions Fri Apr 30 9:42:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from everest.netidea.com (everest.netidea.com [207.194.161.4]) by hub.freebsd.org (Postfix) with ESMTP id BFA7E15316 for ; Fri, 30 Apr 1999 09:42:35 -0700 (PDT) (envelope-from gregm@netidea.com) Received: from Main (pm162-15.dialup.netidea.com [207.194.162.15]) by everest.netidea.com (8.9.3/8.8.8) with SMTP id JAA11194; Fri, 30 Apr 1999 09:38:56 -0700 Message-Id: <199904301638.JAA11194@everest.netidea.com> From: gregm@netidea.com To: "Greg Campbell" Date: Fri, 30 Apr 1999 09:44:11 -0700 Subject: Re: socket communication Cc: questions@FreeBSD.ORG In-reply-to: <000f01be9323$ce6e5bf0$9308a8c0@matrikon.com> X-mailer: Pegasus Mail for Win32 (v3.01d) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I hope someone will correct me if I'm wrong but I think port number 2000 is guaranteed to fail. Try with a different port number. Regards, Greg Martin. gregm@netidea.com > I would appreciate some words of wisdom from anyone > who has done some socket programming on FreeBSD. > > The question is this: > Is there anything special about connecting to a > socket from FreeBSD? I am getting an error from > the "connect" function call (nothing more than > -1 is returned which doesn't seem to map to any > error messages codes. > > #define PORTNUM 2000 > #define oops(msg) {printf("%s\n",msg);exit(-1);} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message