<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Saint 1984</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sat, 27 Jun 2026 05:12:55 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Anxiety Attack aka Panic Attack</title>
            <link>http://forum.lowyat.net/topic/0</link>
            <description></description>
            <category>Health &amp;amp; Fitness</category>
            <pubDate>Thu, 01 Jan 1970 07:30:00 +0800</pubDate>
        </item>
        <item>
            <title>Anxiety Attack aka Panic Attack</title>
            <link>http://forum.lowyat.net/topic/2646444</link>
            <description>Dear fellow Lowyatians, currently I have a fren who is suffering from this illness.  She is currently on medication but I feel that if she keeps relying on medication, it&amp;#39;ll be worst for her health.  I read from wikipedia that this is a type of mental illness.  And mosly occurs on women. I am worried of her.  And I&amp;#39;m here to seek guidance on successful ways to overcome this illness.</description>
            <author>Saint 1984</author>
            <category>Mental Health &amp;amp; Counselling</category>
            <pubDate>Fri, 28 Dec 2012 23:40:29 +0800</pubDate>
        </item>
        <item>
            <title>What would be the Best Christmas ideas?</title>
            <link>http://forum.lowyat.net/topic/2598876</link>
            <description>Hi guys, was wondering, what would be the best Christmas gift for someone you love? Any ideas of what to do or what gifts to get?&lt;br /&gt;If gifts, please tell me where I can get them. Thanks.</description>
            <author>Saint 1984</author>
            <category>Cupid&amp;#39;s Corner</category>
            <pubDate>Thu, 22 Nov 2012 00:17:02 +0800</pubDate>
        </item>
        <item>
            <title>What Lizard is this? How to care?</title>
            <link>http://forum.lowyat.net/topic/1735074</link>
            <description>Hi peeps.. my uncle caught this last night and he&amp;#39;s letting me to keep it. I&amp;#39;m trying to find how what species of lizard/gecko is this and how to take care of it.  Hope to get as much info as i can. Thanks.</description>
            <author>Saint 1984</author>
            <category>Pets Wonderland</category>
            <pubDate>Fri, 28 Jan 2011 13:21:02 +0800</pubDate>
        </item>
        <item>
            <title>Keeping tank at cool temperature</title>
            <link>http://forum.lowyat.net/topic/474843</link>
            <description>Hi guys.. i&amp;#39;m working in a shop that sellls live baits consisting of fishes and prawns for anglers and lately i noticed that my fishes and prawns are dying.  I suspect that it might be the temperature and i&amp;#39;ve checked the internet which says that the DO(density of oxygen) in a tank became less when the water is at a warmer temperature and the number of bacterias increase as temperature increase as well.  Currently i have 3 big plastic tanks with the measurement of 1.5m x 1.5mx 1 m(width x length x height).&lt;br /&gt;&lt;br /&gt;anyone can help me out in how to cool the water in the aquarium tank?  Thanks</description>
            <author>Saint 1984</author>
            <category>Pets Wonderland</category>
            <pubDate>Mon, 18 Jun 2007 21:10:30 +0800</pubDate>
        </item>
        <item>
            <title>URGENT help regarding installation of Ubuntu 6.06</title>
            <link>http://forum.lowyat.net/topic/433191</link>
            <description>hey there. i nid help regarding ubuntu and linux programming in C asap.  anyone here that is free and willing to help me out?  If can, I&amp;#39;d like to add u guys into my msn or ym coz i have lots of Q to ask.  and one of them is regarding instalation of ubuntu in the same HDD with my existing win XP.&lt;br /&gt;&lt;br /&gt;From the image attached, i have 5GB spared to instal / and 510mb for swap.  The remaining are my windows partition. What i wanted to know is if i mount them like on the picture before the instalation og ubuntu, will it overwrite my windows partition, causing data loss in my windows and causing error to it?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;please advise. Thank you a lot.  &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Saint 1984</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Tue, 27 Mar 2007 22:54:06 +0800</pubDate>
        </item>
        <item>
            <title>FLASH: how to implement sound slide show with xml</title>
            <link>http://forum.lowyat.net/topic/425931</link>
            <description>Tools used: XML + Actionscript(FLASH 7/8)&lt;br /&gt;&lt;br /&gt;I&amp;#39;m actually doing this for my project.  So i&amp;#39;m wondering if anyone her can teach me how to implement a program as stated above using flash.  It&amp;#39;s like making a flash card.  So when u move to the next slide(card) by clicking the next button, there will be a different picture and different sound. &lt;br /&gt;&lt;br /&gt;I manage to find one but it only can loads images.  Please help.  Thank you. &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Saint 1984</author>
            <category>Codemasters</category>
            <pubDate>Tue, 13 Mar 2007 11:18:16 +0800</pubDate>
        </item>
        <item>
            <title>My 250GB harddisk become 160GB</title>
            <link>http://forum.lowyat.net/topic/425683</link>
            <description>Anyone care to help me on this?  I formatted my newly bought harddisk.  Format it clean and partitioned it into 7-8 partition with each about 30-40GB.  Everything was fine... till a week later.... my HDD suddenly keep restarting and then finally cannot boot.  I tot it was my hardware problem.. check.. no problem.  So i formatted the whole harddisk again.  And this time... only 160GB was detectable.  &lt;!--emo&amp;:shock:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/shocking.gif' border='0' style='vertical-align:middle' alt='shocking.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;I then tried to put it in my housemate&amp;#39;s computer as secondary but he can read the missing partition and summore access the files.  And i can even copy the files to my new re-created partition.  Anyone care to explain this phenomenon?  I&amp;#39;m using WD 8mb buffer.&lt;br /&gt;&lt;br /&gt;Thanks  &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt; rili pening liao~</description>
            <author>Saint 1984</author>
            <category>Technical Support</category>
            <pubDate>Mon, 12 Mar 2007 20:52:41 +0800</pubDate>
        </item>
        <item>
            <title>What model of SE phone is this?</title>
            <link>http://forum.lowyat.net/topic/420966</link>
            <description>So i received an e-mail from a fren few months back about a new mobile phone that&amp;#39;s coming out to the market developed by SE.  But wait so long adi... still not yet out.&lt;br /&gt;&lt;br /&gt;Below are the pictures of the phone.  Any one know what model is this and any otehr news about it?  It looks like a combo of LG chocolate phone with SE keypad design.&lt;br /&gt;&lt;br /&gt;&lt;img src='http://img.photobucket.com/albums/v287/foxseija/C8373211.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src='http://img.photobucket.com/albums/v287/foxseija/C7271348.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src='http://img.photobucket.com/albums/v287/foxseija/C5486144.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src='http://img.photobucket.com/albums/v287/foxseija/C4627216.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src='http://img.photobucket.com/albums/v287/foxseija/C0224751.jpg' border='0' alt='user posted image' /&gt;</description>
            <author>Saint 1984</author>
            <category>Mobile Phones and Tablets</category>
            <pubDate>Sat, 03 Mar 2007 13:05:15 +0800</pubDate>
        </item>
        <item>
            <title>HIP HOP DANCING -I WANT TO LEARN</title>
            <link>http://forum.lowyat.net/topic/369599</link>
            <description>Erm.. guys... i&amp;#39;m kinda wondering where to learn to dance in malacca?  any one can suggest me?  Coz i wanan learn hip hop dancing.  ^^ thanx &amp;#33;   &lt;!--emo&amp;:thumbs:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/thumbup.gif' border='0' style='vertical-align:middle' alt='thumbup.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Saint 1984</author>
            <category>The Sports Channel</category>
            <pubDate>Sun, 19 Nov 2006 06:30:14 +0800</pubDate>
        </item>
        <item>
            <title>Asking for suggestions about building a web system</title>
            <link>http://forum.lowyat.net/topic/364750</link>
            <description>Dear comrades.... currently i&amp;#39;ve been given a project to do related with web designing.  It&amp;#39;s sumthing like amazon.com .  Can anyone suggest me what language to use?  I plan to use PHP.  But i&amp;#39;m afraid of the database linking error and session error.&lt;br /&gt;&lt;br /&gt;What language is usually use to develop this kind of webpage?  Anyone care to help out?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thanx ya~&lt;br /&gt;&lt;br /&gt;</description>
            <author>Saint 1984</author>
            <category>Codemasters</category>
            <pubDate>Thu, 09 Nov 2006 07:31:35 +0800</pubDate>
        </item>
        <item>
            <title>Big Q regarding VB MS access.. nid suggestions</title>
            <link>http://forum.lowyat.net/topic/343695</link>
            <description>i wanan ask, is there anyway that  can retrieve datas from a colum in a table and then sum them all up?&lt;br /&gt;&lt;br /&gt;i&amp;#39;m doing a project realted with finance which collects data from two diff table, and then sums them up together in the 3rd form.&lt;br /&gt;&lt;br /&gt;anyoen can suggest me how to create this &amp;quot;algorithm&amp;quot; o show me how to do it?</description>
            <author>Saint 1984</author>
            <category>Codemasters</category>
            <pubDate>Thu, 21 Sep 2006 16:14:02 +0800</pubDate>
        </item>
        <item>
            <title>SQL related with vb 6</title>
            <link>http://forum.lowyat.net/topic/342012</link>
            <description>dim ar as ADODB.recordset&lt;br /&gt;&lt;br /&gt;set ar=new adodb.recordset&lt;br /&gt;ar.open {SQL Statement}&lt;br /&gt;ar.addnew&lt;br /&gt;ar&amp;#33;ID=intID&lt;br /&gt;ar&amp;#33;Name=strName&lt;br /&gt;ar.update&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;was wondering.... what shud i put to replace &amp;quot;sql statement&amp;quot;  &lt;br /&gt;&lt;br /&gt;help?  : &lt;!--emo&amp;:sweat:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sweat.gif' border='0' style='vertical-align:middle' alt='sweat.gif' /&gt;&lt;!--endemo--&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;edit: tag post</description>
            <author>Saint 1984</author>
            <category>Codemasters</category>
            <pubDate>Mon, 18 Sep 2006 00:10:44 +0800</pubDate>
        </item>
        <item>
            <title>VB 6 [problem]  DATABASE SYSTEM</title>
            <link>http://forum.lowyat.net/topic/335892</link>
            <description>hey guys.. it&amp;#39;s the noob me again ^^&amp;quot;  i wanna ask what exactly does it mean by &amp;#39;object variable or with block variable not defined&amp;#39; ? it&amp;#39;s runtime error &amp;#39;91&amp;#39;  .. it means that sumthing is not defined rite?  and i have to &amp;#39;dim&amp;#39; sumthing issit?  but what is it ar?  can help me ar? pls~  ^^&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-i&amp;#39;m suppose to create a simple add button function what will key in data into the database of ms Access... followed the text book bt this error occur. =.=&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub btn_add_Click()&lt;br /&gt;&amp;#39;Add new record&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; With AdoInv.Recordset&lt;br /&gt; &lt;br /&gt; If btn_add.Caption = &amp;quot;Add&amp;quot; Then&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;    .AddNew  &amp;#39;clear out fields for new record&lt;br /&gt;    txt_sid.SetFocus&lt;br /&gt;    DisableButtons&lt;br /&gt;    btn_save.Enabled = True&lt;br /&gt;    btn_add.Caption = &amp;quot;Cancel&amp;quot;&lt;br /&gt; Else&lt;br /&gt;    AdoInv.Recordset.CancelUpdate &amp;#39;cancel the add&lt;br /&gt;    EnableButtons                   &amp;#39;enable navigation&lt;br /&gt;    btn_save.Enabled = False        &amp;#39;disable save button&lt;br /&gt;    btn_add.Caption = &amp;quot;Add&amp;quot;         &amp;#39;Reset Add button&lt;br /&gt;    btn_clr.Enabled = False&lt;br /&gt;        &lt;br /&gt; End If&lt;br /&gt;    End With&lt;br /&gt;End Sub</description>
            <author>Saint 1984</author>
            <category>Codemasters</category>
            <pubDate>Mon, 04 Sep 2006 12:21:45 +0800</pubDate>
        </item>
        <item>
            <title>VB6.0 noob nids enlightment ^^</title>
            <link>http://forum.lowyat.net/topic/313228</link>
            <description>below is the code and erm... if u want the form, can get it at&lt;a href='http://www.megaupload.com/?d=4Q7J0CVN' target='_blank'&gt;&amp;lt;b&amp;gt;HERE&amp;lt;/b&amp;gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;What i want it to be:  I actually want the login screen to check n see if the username n pw is keyed in o not first, else it will just output a msg box and nothing else.  &lt;br /&gt;&lt;br /&gt;Problem:  It not only output the msg box asking to enter user n pw... but it oso out put the rest of the msg box as well.  &lt;br /&gt;&lt;br /&gt;Question: how do i stop the program from outputing the rest?  I tried inserting the &amp;#39;END&amp;#39; command but no can do.. zzz &lt;br /&gt;&lt;br /&gt;many many thanks&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub chgpw_Click()&lt;br /&gt;frmChangepw.Show&lt;br /&gt;Unload Me&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub close_Click()&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub connect_Click()&lt;br /&gt;&lt;br /&gt;&amp;#39;---declaration&lt;br /&gt;Dim flag As Boolean&lt;br /&gt;&lt;br /&gt;flag = False&lt;br /&gt;&lt;br /&gt;&amp;#39;---coding body &amp;quot;if-else&amp;quot;&lt;br /&gt;&lt;br /&gt;If (txt_user &amp;amp; txt_pwcode) = &amp;quot;&amp;quot; Then MsgBox &amp;quot;Please type in your Username and Password&amp;quot; _&lt;br /&gt;, vbOKOnly + vbCritical, &amp;quot;WARNING: INPUT ERROR&amp;quot;&lt;br /&gt;txt_user.SetFocus&lt;br /&gt;txt_pwcode.SetFocus&lt;br /&gt;&lt;br /&gt;flag = True&lt;br /&gt;&lt;br /&gt;&amp;#39;End If&lt;br /&gt;&lt;br /&gt;If txt_user.Text = &amp;quot;&amp;quot; Then&lt;br /&gt;    MsgBox &amp;quot;Please Enter Username&amp;quot;, vbOKOnly + vbCritical, _&lt;br /&gt;    &amp;quot;WARNING: INPUT ERROR&amp;quot;&lt;br /&gt;    txt_user.SetFocus&lt;br /&gt;    flag = True&lt;br /&gt;&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Else&lt;br /&gt;If txt_pwcode = &amp;quot;&amp;quot; Then MsgBox &amp;quot;Please Enter Password&amp;quot; _&lt;br /&gt;    , vbOKOnly + vbCritical, &amp;quot;WARNING: INPUT ERROR&amp;quot;&lt;br /&gt;flag = False&lt;br /&gt;&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#39;Else&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#39;End If&lt;br /&gt;If txt_user = &amp;quot;saint&amp;quot; &amp;amp; txt_pwcode = &amp;quot;saint84&amp;quot; Then&lt;br /&gt;frmMenu.Show&lt;br /&gt;Unload Me&lt;br /&gt;End If&lt;br /&gt;&amp;#39;End If&lt;br /&gt;End Sub</description>
            <author>Saint 1984</author>
            <category>Codemasters</category>
            <pubDate>Thu, 13 Jul 2006 11:29:38 +0800</pubDate>
        </item>
        <item>
            <title>VB6.0 help</title>
            <link>http://forum.lowyat.net/topic/304594</link>
            <description>guys... i&amp;#39;m new at vb 6.0.. so basically need help.  I&amp;#39;ve designed a form where after clicking on the login button, the program will authenticate the user name and password before bringing the user to a new form.&lt;br /&gt;&lt;br /&gt;my prob is .... i dunno how to make that command button to bring the user to the second form which i&amp;#39;ve created.&lt;br /&gt;&lt;br /&gt;in short: form A, &amp;quot;click go form B &amp;quot;button&amp;quot;&amp;quot;  -&amp;gt; form B ..how to code thsi this?&lt;br /&gt;&lt;br /&gt;help out ya. tqtq  &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Saint 1984</author>
            <category>Codemasters</category>
            <pubDate>Thu, 22 Jun 2006 16:04:11 +0800</pubDate>
        </item>
        <item>
            <title>hair style .. how to get this hair?</title>
            <link>http://forum.lowyat.net/topic/296469</link>
            <description>erm.. i just wanna know how to ask the hairstylist to cut this type of hair... and what&amp;#39;s it called?</description>
            <author>Saint 1984</author>
            <category>Health &amp;amp; Fitness</category>
            <pubDate>Fri, 02 Jun 2006 22:40:57 +0800</pubDate>
        </item>
        <item>
            <title>Need urgent help regarding coding =.=</title>
            <link>http://forum.lowyat.net/topic/280615</link>
            <description>How do you display the current time of your computer in C program? How do you send instruction to the server from client asking for time?  and where do you implement it at?  i&amp;#39;m noob at this =.= &lt;br /&gt;&lt;br /&gt;HELP~&amp;#33;&amp;#33;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PS: below are the code for server and client  u have to run them on two different terminals&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Sample TCP Server Code.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;sys/types.h&amp;gt;&lt;br /&gt;#include &amp;lt;sys/socket.h&amp;gt;&lt;br /&gt;#include&amp;lt;netinet/in.h&amp;gt;&lt;br /&gt;#include&amp;lt;arpa/inet.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int s;&lt;br /&gt;int s1;&lt;br /&gt;int rc;&lt;br /&gt;char buf [100];&lt;br /&gt;&lt;br /&gt;void mylisten(void);&lt;br /&gt;void mysend(void);&lt;br /&gt;int myreceive(void);&lt;br /&gt;void myaccept(void);&lt;br /&gt;&lt;br /&gt;int main (void)&lt;br /&gt;{&lt;br /&gt;struct sockaddr_in local;&lt;br /&gt;int a;&lt;br /&gt;&lt;br /&gt;local.sin_family = AF_INET;&lt;br /&gt;local.sin_port = htons (7500);&lt;br /&gt;local.sin_addr.s_addr = htonl (INADDR_ANY);&lt;br /&gt;s = socket (AF_INET, SOCK_STREAM, 0);&lt;br /&gt;if ( s&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror (&amp;quot;socket call failed&amp;quot;);&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;rc = bind (s, (struct sockaddr *) &amp;amp; local, sizeof (local));&lt;br /&gt;if (rc&amp;lt;0 )&lt;br /&gt;{&lt;br /&gt;perror (&amp;quot;bind call failure&amp;quot;);&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;mylisten();&lt;br /&gt;myaccept();&lt;br /&gt;&lt;br /&gt;while(1)&lt;br /&gt;{&lt;br /&gt;a = myreceive();&lt;br /&gt;&lt;br /&gt;if(&amp;#33;a)&lt;br /&gt;myaccept();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void mylisten()&lt;br /&gt;{&lt;br /&gt;rc=listen(s, 5);&lt;br /&gt;if (rc)&lt;br /&gt;{&lt;br /&gt;perror(&amp;quot;listen call failed&amp;quot;);&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;fork();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void myaccept()&lt;br /&gt;{&lt;br /&gt;s1=accept (s, NULL, NULL);&lt;br /&gt;if (s1&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror(&amp;quot;accept call failed&amp;quot;);&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int myreceive()&lt;br /&gt;{&lt;br /&gt;rc=recv( s1, buf, sizeof(buf), 0);&lt;br /&gt;if (rc&amp;lt;=0)&lt;br /&gt;{&lt;br /&gt;perror(&amp;quot;recv call failed&amp;quot;);&lt;br /&gt;return 0;&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;printf(&amp;quot;%s&amp;#092;n&amp;quot;, buf);&lt;br /&gt;&lt;br /&gt;mysend();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void mysend()&lt;br /&gt;{&lt;br /&gt;rc=send( s1, &amp;quot;2&amp;quot;, 1, 0);&lt;br /&gt;if (rc&amp;lt;=0)&lt;br /&gt;perror(&amp;quot;send call failed&amp;quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Sample TCP client:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;sys/types.h&amp;gt;&lt;br /&gt;#include&amp;lt;sys/socket.h&amp;gt;&lt;br /&gt;#include&amp;lt;netinet/in.h&amp;gt;&lt;br /&gt;#include&amp;lt;arpa/inet.h&amp;gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int s;&lt;br /&gt;int rc;&lt;br /&gt;char buf[1];&lt;br /&gt;struct sockaddr_in peer;&lt;br /&gt;&lt;br /&gt;void mysend(char []);&lt;br /&gt;void myreceive(void);&lt;br /&gt;void myconnect();&lt;br /&gt;&lt;br /&gt;int main(void){&lt;br /&gt;&lt;br /&gt;char msg[100];&lt;br /&gt;&lt;br /&gt;peer.sin_family=AF_INET;&lt;br /&gt;peer.sin_port = htons(7500);&lt;br /&gt;peer.sin_addr.s_addr=inet_addr(&amp;quot;127.0.0.1&amp;quot;);&lt;br /&gt;&lt;br /&gt;s=socket(AF_INET,SOCK_STREAM,0);&lt;br /&gt;&lt;br /&gt;if(s&amp;lt;0)&lt;br /&gt;{ perror(&amp;quot;Socket call fail&amp;quot;);&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;myconnect(); &lt;br /&gt;&lt;br /&gt;while(1)&lt;br /&gt;{ &lt;br /&gt;scanf(&amp;quot;%s&amp;quot;,msg);&lt;br /&gt;mysend(msg);&lt;br /&gt;myreceive();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;exit(0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void myconnect()&lt;br /&gt;{&lt;br /&gt;rc=connect(s,(struct sockaddr*)&amp;amp;peer,sizeof(peer));&lt;br /&gt;&lt;br /&gt;if(rc)&lt;br /&gt;{&lt;br /&gt;perror(&amp;quot;Connect call fail&amp;quot;);&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void mysend(char msg[])&lt;br /&gt;{&lt;br /&gt;rc=send(s,msg,100,0);&lt;br /&gt;printf(&amp;quot;sent: %s&amp;#092;n&amp;quot;,msg);&lt;br /&gt;&lt;br /&gt;if(rc&amp;lt;=0)&lt;br /&gt;{ &lt;br /&gt;perror(&amp;quot;Send call fail&amp;quot;);&lt;br /&gt;exit(1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void myreceive()&lt;br /&gt;{&lt;br /&gt;rc=recv(s,buf,1,0);&lt;br /&gt;if(rc&amp;lt;=0)&lt;br /&gt;perror(&amp;quot;recv call fail&amp;quot;);&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;printf(&amp;quot;received: %s&amp;#092;n&amp;quot;,buf);&lt;br /&gt;} &lt;!--emo&amp;:cry:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/cry.gif' border='0' style='vertical-align:middle' alt='cry.gif' /&gt;&lt;!--endemo--&gt;  &lt;!--emo&amp;:cry:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/cry.gif' border='0' style='vertical-align:middle' alt='cry.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Saint 1984</author>
            <category>Codemasters</category>
            <pubDate>Tue, 25 Apr 2006 07:46:59 +0800</pubDate>
        </item>
    </channel>
</rss>
