<DIV id=RTEContent>is there anyone who can help me with my program please<BR><BR><B><I>Guy Ferse <gferse_24@yahoo.co.uk></I></B> wrote:  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <DIV>yes in terms of network sockets,</DIV>  <DIV> </DIV>  <DIV>I am attaching the standalone client file i have coded but am unable to compile it in k develop.</DIV>  <DIV> </DIV>  <DIV>I will tell you step by step what i exactly did;</DIV>  <DIV> </DIV>  <DIV>i opened IDE for c/c++ development</DIV>  <DIV> </DIV>  <DIV>then go to Project--> New project--> Select C --> Gnome --> Simple Hello world Program --> program name (Sockets) --> take all the default values and Finish it.</DIV>  <DIV> </DIV>  <DIV>Then I opened the sockets project directory --> Src dir --> then copy this client1.c file in there.</DIV>  <DIV> </DIV>  <DIV>Then from Build dropdown menu --> choose Compile
 (Client1.c) --> it says there is no makefile and configure file. Run automake and configure first? I press YES.  it gives the following </DIV>  <DIV> </DIV>  <UL>  <LI>/home/gferse/Desktop/sockets/src/client1.c:23: warning: incompatib! le implicit declaration of built-in function 'exit'.</LI>  <LI>/home/gferse/Desktop/sockets/src/client1.c:30: warning:incompatible implicit declaration of built-in function 'exit'.</LI>  <LI>/home/gferse/Desktop/sockets/src/client1.c:33: error: syntax error before '}' token.</LI>  <LI>/home/gferse/Desktop/sockets/src/client1.c:33:2: warning: no newline at end of file.</LI>  <LI>gmake:***[client1.lo]Error1</LI>  <LI>***Exited with status:2***</LI></UL>  <DIV>I dont really know what does this means, can you please help me with it. I have consulted some books but they hardly give any description of errors as if everything is perfect.</DIV>  <DIV> </DIV>  <DIV>Regards</DIV>  <DIV>Guy<BR><BR><B><I>Rick Stevens
 <rstevens@vitalstream.com></I></B> wrote:</DIV>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Sun, 2005-11-27 at 19:55 +0000, Guy Ferse wrote:<BR>> hi Stevens<BR>> <BR>> thankx for the suggestion, ! i have upgraded my system to Suse 10.0, can<BR>> you or anyone else guide me if i can get some help in terms of<BR>> programming errors relating to socket programing using kdeveloper 3.2<BR><BR>You could have updated to FC4 for free, you know.<BR><BR>Socket programming? As in network sockets? What is the problem you're<BR>having?<BR><BR>[other, historical data on this thread deleted]<BR><BR>----------------------------------------------------------------------<BR>- Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com -<BR>- VitalStream, Inc. http://www.vitalstream.com -<BR>- -<BR>- Working with Linux is like wrestling with a worthy opponent. -<BR>- Working with Windows is like picking on an!
 annoyed
 child with a -<BR>- loaded handgun. -<BR>----------------------------------------------------------------------<BR><BR>_______________________________________________<BR>Redhat-install-list mailing list<BR>Redhat-install-list@redhat.com<BR>https://www.redhat.com/mailman/listinfo/redhat-install-list<BR>To Unsubscribe Go To ABOVE URL or send a message to:<BR>redhat-install-list-request@redhat.com<BR>Subject: unsubscribe<BR></BLOCKQUOTE>  <DIV><BR></DIV>  <div>  <HR SIZE=1>  <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Play <A href="http://santas-christmas-party.yahoo.net/">Santa's Celebrity Xmas Party</A>, an exclusive game from Yahoo! </FONT>#include <SYS types.h><BR>#include <SYS socket.h><BR>#include <STDIO.H><BR>#include <SYS un.h><BR>#include <UNISTD.H><BR><BR>int main()<BR>{<BR>int sockfd;<BR>int len;<BR>struct sockaddr_un address;<BR>int result;<BR>char ch = 'A';<BR>sockfd = socket(AF_UNIX, SOCK_STREAM, 0);<BR>address.sun_family =
 AF_UNIX;<BR>strcpy(address.sun_path, "server_socket");<BR>len = sizeof(address);<BR>result = connect(sockfd, (struct sockaddr*)&address, len);<BR><BR>if(result == -1)<BR>{<BR>perror("oops: client1");<BR>exit(1);<BR>}<BR><BR>write(sockfd, &ch, 1);<BR>read(sockfd, &ch, 1);<BR>printf("char from server = %c\n", ch);<BR>close(sockfd);<BR>exit(0);<BR>}<BR><BR>}_______________________________________________<BR>Redhat-install-list mailing list<BR>Redhat-install-list@redhat.com<BR>https://www.redhat.com/mailman/listinfo/redhat-install-list<BR>To Unsubscribe Go To ABOVE URL or send a message to:<BR>redhat-install-list-request@redhat.com<BR>Subject: unsubscribe</BLOCKQUOTE><BR></DIV><p>
                <hr size=1> 
<font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
Play <a href="http://santas-christmas-party.yahoo.net/">Santa's Celebrity Xmas Party</a>, an exclusive game from Yahoo! 
</font>