From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Korn To: gcc-help@gcc.gnu.org Subject: RE: Help me Date: Tue, 13 Feb 2001 10:16:00 -0000 Message-id: <718D38CAB6E0D011B2C90060970C28A56426B0@EXCHANGESERVER> X-SW-Source: 2001-02/msg00107.html -----Original Message----- From: Pietro [ mailto:kpietro@inwind.it ] Sent: 13 February 2001 17:41 >Hello ML Hello Pietro >I have the program for scan ports, in the which there is : [snip] >With gcc -g -oprova prova.c is ok! >No error. >When run the program (prova) in the gdb, subsequently line > if (connect(sock, (struct sockaddr*)&sin, sizeof(sin))==0) >write the command print connect. >The result is : >$1 = {< text variable, no debug info >} 0x400c9ca0 <__libc_connect> >Why ? >The result of connect no egual -1 (error connecting) or 0 >(connecting ok) ? This question would belong even better on the "All Binary Use Sockets Exchange" mailing list instead, so why not send your question to the address abuse@inwind.it ? I'm sure they'll give you a good answer. DaveK -- we are not seats or eyeballs or end users or consumers. we are human beings - and our reach exceeds your grasp. deal with it. - cluetrain.org ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************