Posts Tagged ‘dido’

A tiny minimalistic CHAT Client Program writen in C

Sunday, July 29th, 2012

Reading Time: < 1minuteA friend of mine (Dido) who is learning C programming, has written a tiny chat server / client (peer to peer) program in C. His program is a very good learning curve for anyone desiring to learn basic C socket programming.
The program is writen in a way so it can be easily modified to work over UDP protocol with code:

struct sockaddr_in a;
a_sin_family=AF_INET;
a_sin_socktype=SOCK_DGRAM;

Here are links to the code of the Chat server/client progs:

Tiny C Chat Server Client source code

Tiny C Chat Client source code

To Use the client/server compile on the server host tiny-chat-serer-client.c with:

$ cc -o tiny-chat-server tiny-chat-server.c

Then on the client host compile the client;

$ cc -o tiny-chat-client tiny-chat-client.c

On the server host tiny-chat-server should be ran with port as argument, e.g. ;

$ ./tiny-chat-server 8888

To chat with the person running tiny-chat-server the compiled server should be invoked with:

$ ./tiny-chat-client 123.123.123.123 8888

123.123.123.123 is the IP address of the host, where tiny-chat-server is executed.
The chat/server C programs are actually a primitive very raw version of talk.

The programs are in a very basic stage, there are no condition checks for incorrectly passed arguments and with wrongly passed arguments it segfaults. Still for C beginners its useful …

Looser Again

Wednesday, January 31st, 2007

Reading Time: < 1minute
Got the 2 mark on Marketing Exam. Again I’m a looser. I dont’ have nor time nor desire to learn again for this exam.I think I’m not suitable for student. Today we was on a coffee with Mitko, Toto and Dido. Nothing special ordinary day.Yesterday we stayed in Mitko and was installing Gentoo Linux to his laptop. Gentoo’s grub was buggy or something,we didn’t succeeded running the kernel with GRUB, so we decided to switch to LILO. We were able to makethe maching bootable using LILO. Then there was an annying error with REAL_ROOT option. After a lot of wanderingediting of /linuxrc we found the mistake it was a mismatch in lilo a mistake we made writing in it we wrote therereal_boot instead of real_root. In the end everything worked okay. And I went home sleeping.I’m not sure where my life is going to again … I’m completely Lost in the Dark.END—–

How my day passed

Monday, June 25th, 2007

Reading Time: 2minutes
My day started at 10:00 when a man called and asked is his Windows preinstalled and I pointed him to call to Nomen because his computer was in Nomen. Later I met Nomen and we have a walk in the central park. Then we went to see Jivko the Beggar. Hel told us a story how a skinhead started throwing stones at him for no reason … A sort of protestant Christian came and started telling me very messed things about Christ his new life etc. etc. I told him that I would send him to a hospital If I had the power :]. After that I met Lily and we walked for sometime together on my way to my uncle. I tried to read/explain him The New Testament “The Gospel of Mark”. But every time I started telling him how Christ has paid the price for us with his Holy Blood, and how He exchanged his rightfulness for our unrightfulness he started to get sleepy (strange). After that we had a great dinner together, I decided to stay for the dinner just because I wanted to suggest them to pray before eating, we prayed together with “The Lord’s Prayer”. After that I decided to walk to Mino’s coffee and I drinked a beer there with Ceco and Dido. After that I went home and spend some time reading posts on the “http://whygodwonthealamputees.com”. This forums are addictive but seems that are disturbing for my spiritual health, so I should to visit this place. I read some Christians on the Topic some of them were interesting it’s seems St. Anthony healed amputees so someday It’s vital to read about the Living of this Saint. The day passed comparingly untroublful for which I may only give a thanks to God :]. Few times during the day I hhave lost the point of where my life is going to and I doubt about my faith and Christ as a Saviour and the meaning of life, but it’s unescapable it’s the devil work to put lies into my head in the end :].END—–