<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Mohit Jangra</title>
	<atom:link href="https://www.emblogic.com/blog/author/mohit-emb108/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>client-server project using multi-threads</title>
		<link>https://www.emblogic.com/blog/11/client-server-project-using-multi-threads/</link>
		<comments>https://www.emblogic.com/blog/11/client-server-project-using-multi-threads/#comments</comments>
		<pubDate>Sun, 23 Nov 2014 04:30:59 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11879</guid>
		<description><![CDATA[RCS file: ./server.c,v Working file: ./server.c head: 1.9 branch: locks: strict root: 1.9 access list: symbolic names: keyword substitution: kv total revisions: 9; selected revisions: 9 description: included all the header files that will be used in the code &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8230; <a href="https://www.emblogic.com/blog/11/client-server-project-using-multi-threads/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./server.c,v<br />
Working file: ./server.c<br />
head: 1.9<br />
branch:<br />
locks: strict<br />
	root: 1.9<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 9;	selected revisions: 9<br />
description:<br />
included all the header files that will be used in the code<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.9	locked by: root;<br />
date: 2014/11/23 17:59:58;  author: root;  state: Exp;  lines: +1 -1<br />
created two more requesting clients<br />
doing the same as above for the other two clients<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.8<br />
date: 2014/11/23 17:59:00;  author: root;  state: Exp;  lines: +1 -1<br />
gave pthread exit in the thread<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7<br />
date: 2014/11/23 17:57:57;  author: root;  state: Exp;  lines: +1 -1<br />
processed the data<br />
wrote back to the requesting client using fifo after creating it<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/11/23 17:56:12;  author: root;  state: Exp;  lines: +1 -1<br />
created a thread for processing the data<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/23 17:55:23;  author: root;  state: Exp;  lines: +1 -1<br />
successfully receieved the data in the server<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/23 17:53:20;  author: root;  state: Exp;  lines: +1 -1<br />
gave the command and address of buffer using msgctl()<br />
sent data to server using msgsnd()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/23 17:50:17;  author: root;  state: Exp;  lines: +1 -1<br />
defined the message type<br />
printed the kernel key in requesting client<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/23 17:48:55;  author: root;  state: Exp;  lines: +1 -1<br />
created a msgbuf structure<br />
got the kernel key using msgget()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/23 17:47:22;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/client-server-project-using-multi-threads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>basic implementation of thread</title>
		<link>https://www.emblogic.com/blog/11/basic-implementation-of-thread/</link>
		<comments>https://www.emblogic.com/blog/11/basic-implementation-of-thread/#comments</comments>
		<pubDate>Sun, 23 Nov 2014 04:13:26 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11877</guid>
		<description><![CDATA[RCS file: ./threads.c,v Working file: ./threads.c head: 1.7 branch: locks: strict root: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: included all the header files that will be used in the code &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8230; <a href="https://www.emblogic.com/blog/11/basic-implementation-of-thread/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./threads.c,v<br />
Working file: ./threads.c<br />
head: 1.7<br />
branch:<br />
locks: strict<br />
	root: 1.7<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 7;	selected revisions: 7<br />
description:<br />
included all the header files that will be used in the code<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7	locked by: root;<br />
date: 2014/11/23 17:42:53;  author: root;  state: Exp;  lines: +1 -1<br />
joined the thread in the main function<br />
destroyed the semaphore<br />
printed exit success<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/11/23 17:42:12;  author: root;  state: Exp;  lines: +1 -1<br />
called the pthread_exit function the the thread<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/23 17:40:57;  author: root;  state: Exp;  lines: +1 -1<br />
opened a text file in write only mode<br />
wrote the input in the text file that was given as an input from tne user<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/23 17:39:25;  author: root;  state: Exp;  lines: +1 -1<br />
created a thread function after defining it<br />
putting the semaphore in wait condition<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/23 17:37:37;  author: root;  state: Exp;  lines: +1 -1<br />
putting semaphore in wait condition<br />
taking a string input from user(if &#8220;end&#8221;,then terminate)<br />
increased the semaphore<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/23 17:35:59;  author: root;  state: Exp;  lines: +1 -1<br />
initialised the semaphore<br />
created a thread<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/23 17:35:33;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/basic-implementation-of-thread/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ipc using FIFO</title>
		<link>https://www.emblogic.com/blog/11/ipc-using-fifo-4/</link>
		<comments>https://www.emblogic.com/blog/11/ipc-using-fifo-4/#comments</comments>
		<pubDate>Fri, 21 Nov 2014 08:14:24 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11830</guid>
		<description><![CDATA[RCS file: ./server.c,v Working file: ./server.c head: 1.6 branch: locks: strict root: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: includd all the header files that will be used inn the functions created &#8230; <a href="https://www.emblogic.com/blog/11/ipc-using-fifo-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./server.c,v<br />
Working file: ./server.c<br />
head: 1.6<br />
branch:<br />
locks: strict<br />
	root: 1.6<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 6;	selected revisions: 6<br />
description:<br />
includd all the header files that will be used inn the functions<br />
created a structure for two numbers and operation<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6	locked by: root;<br />
date: 2014/11/21 21:42:35;  author: root;  state: Exp;  lines: +1 -1<br />
server read the data<br />
send the result to requesting client<br />
the client displayed the result<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/21 21:41:37;  author: root;  state: Exp;  lines: +1 -1<br />
opened the fifo in read only mode<br />
read the data<br />
proceessed the data<br />
and sent the result back to the server<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/21 21:40:34;  author: root;  state: Exp;  lines: +1 -1<br />
created fifo between server and process<br />
opened the fifo in write only mode<br />
eorte data to the process<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/21 21:38:51;  author: root;  state: Exp;  lines: +1 -1<br />
in server,opened the fifo in read only mode<br />
read the data<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/21 20:27:59;  author: root;  state: Exp;  lines: +1 -1<br />
created a fifo between client and server<br />
opened the fifo in write only mode<br />
wrote data to server<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/21 20:27:25;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/ipc-using-fifo-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>creation,traversing,insertion and deletion in linked list</title>
		<link>https://www.emblogic.com/blog/11/creationtraversinginsertion-and-deletion-in-linked-list/</link>
		<comments>https://www.emblogic.com/blog/11/creationtraversinginsertion-and-deletion-in-linked-list/#comments</comments>
		<pubDate>Fri, 21 Nov 2014 06:42:16 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11828</guid>
		<description><![CDATA[RCS file: ./link_list.c,v Working file: ./link_list.c head: 1.7 branch: locks: strict root: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: defineed all the header files that will be used in the code created &#8230; <a href="https://www.emblogic.com/blog/11/creationtraversinginsertion-and-deletion-in-linked-list/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./link_list.c,v<br />
Working file: ./link_list.c<br />
head: 1.7<br />
branch:<br />
locks: strict<br />
	root: 1.7<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 7;	selected revisions: 7<br />
description:<br />
defineed all the header files that will be used in the code<br />
created the function for entering choices<br />
created the function for operation<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7	locked by: root;<br />
date: 2014/11/21 20:10:31;  author: root;  state: Exp;  lines: +1 -1<br />
created two different functions for deleting a node at the beginning and deleting at the end<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/11/21 20:09:42;  author: root;  state: Exp;  lines: +1 -1<br />
cfreated the function for deleting a node<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/21 20:09:01;  author: root;  state: Exp;  lines: +1 -1<br />
created the function for traversing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/21 20:07:51;  author: root;  state: Exp;  lines: +1 -1<br />
created three more functions for<br />
insert in begning<br />
insert at the end<br />
and insert at nth popsitiion<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/21 20:06:55;  author: root;  state: Exp;  lines: +1 -1<br />
created a  function for inserting a node in a linked list<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/21 20:00:01;  author: root;  state: Exp;  lines: +1 -1<br />
created the link list by first allocating the memory to the temp<br />
then putting node number in the info part of temp<br />
and NULL in the address part of temp<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/21 19:59:07;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/creationtraversinginsertion-and-deletion-in-linked-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ipc using message queue and semaphores</title>
		<link>https://www.emblogic.com/blog/11/ipc-using-message-queue-and-semaphores/</link>
		<comments>https://www.emblogic.com/blog/11/ipc-using-message-queue-and-semaphores/#comments</comments>
		<pubDate>Thu, 13 Nov 2014 19:40:22 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11793</guid>
		<description><![CDATA[rcs: warning: No options were given; this usage is obsolescent. rcs: RCS/server.c,v: No such file or directory [root@(none) ipc_project]# rcs -i server.c RCS file: server.c,v enter description, terminated with single &#8216;.&#8217; or end of file: NOTE: This is NOT the &#8230; <a href="https://www.emblogic.com/blog/11/ipc-using-message-queue-and-semaphores/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>rcs: warning: No options were given; this usage is obsolescent.<br />
rcs: RCS/server.c,v: No such file or directory<br />
[root@(none) ipc_project]# rcs -i server.c<br />
RCS file: server.c,v<br />
enter description, terminated with single &#8216;.&#8217; or end of file:<br />
NOTE: This is NOT the log message!<br />
&gt;&gt; included all the header files that will be used in the code<br />
&gt;&gt; defined struct data and struct sembuf<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v    ./server.c<br />
revision 1.1 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; got the kernel key using msgget()<br />
&gt;&gt; checked the accessibility of the file<br />
&gt;&gt; using access(0<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.2 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; created a fifo between client,server and server,process<br />
&gt;&gt; opened the file in write only mode in the requesting client<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.3 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v    ./server.c<br />
revision 1.3 (locked)<br />
done<br />
co: RCS/co,v: No such file or directory<br />
co: -l option is ignored after filenames<br />
co: -r1.3 option is ignored after filenames<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.3 (locked)<br />
writable ./server.c exists; remove it? [ny](n): y<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v    ./server.c<br />
revision 1.3 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; now,using semop(),decremented the u.value,making the other processes wait while request client is writing<br />
&gt;&gt; in the server side,reading the data and again incrementing the u.value<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.4 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; closed the fifo<br />
&gt;&gt; gave the gave the m.type<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.5 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; opened the fifo in write onlu mode<br />
&gt;&gt; decremented the u.value<br />
&gt;&gt; wrote data from server to process<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.6 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; read the data in the process side<br />
&gt;&gt; incremented the u.value<br />
&gt;&gt; processed the data<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.7 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; closed the fifo<br />
&gt;&gt; decremented the u.val<br />
&gt;&gt; wrote data to server<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.8 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; read the data in server<br />
&gt;&gt; incremented the u.val<br />
&gt;&gt; closed the fifo<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.9 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; stored the result in r.result<br />
&gt;&gt; opened the client server fifo<br />
&gt;&gt; send the data using msgsnd()<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.10 (locked)<br />
done<br />
[root@(none) ipc_project]# ci ./server.c<br />
./server.c,v  &gt; receieved the data in client side using msgrcv()<br />
&gt;&gt; displayed the data<br />
&gt;&gt; closed the fifo<br />
&gt;&gt; .<br />
done<br />
[root@(none) ipc_project]# co -l ./server.c<br />
./server.c,v  &#8211;&gt;  ./server.c<br />
revision 1.11 (locked)<br />
done<br />
[root@(none) ipc_project]# rlog ./server.c </p>
<p>RCS file: ./server.c,v<br />
Working file: ./server.c<br />
head: 1.11<br />
branch:<br />
locks: strict<br />
	root: 1.11<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 11;	selected revisions: 11<br />
description:<br />
included all the header files that will be used in the code<br />
defined struct data and struct sembuf<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.11	locked by: root;<br />
date: 2014/11/14 09:06:43;  author: root;  state: Exp;  lines: +1 -1<br />
receieved the data in client side using msgrcv()<br />
displayed the data<br />
closed the fifo<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.10<br />
date: 2014/11/14 09:05:04;  author: root;  state: Exp;  lines: +1 -1<br />
stored the result in r.result<br />
opened the client server fifo<br />
send the data using msgsnd()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.9<br />
date: 2014/11/14 09:03:39;  author: root;  state: Exp;  lines: +1 -1<br />
read the data in server<br />
incremented the u.val<br />
closed the fifo<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.8<br />
date: 2014/11/14 09:02:39;  author: root;  state: Exp;  lines: +1 -1<br />
closed the fifo<br />
decremented the u.val<br />
wrote data to server<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7<br />
date: 2014/11/14 09:00:14;  author: root;  state: Exp;  lines: +1 -1<br />
read the data in the process side<br />
incremented the u.value<br />
processed the data<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/11/14 08:54:46;  author: root;  state: Exp;  lines: +1 -1<br />
opened the fifo in write onlu mode<br />
decremented the u.value<br />
wrote data from server to process<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/14 08:50:12;  author: root;  state: Exp;  lines: +1 -1<br />
closed the fifo<br />
gave the gave the m.type<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/14 08:45:36;  author: root;  state: Exp;  lines: +1 -1<br />
now,using semop(),decremented the u.value,making the other processes wait while request client is writing<br />
in the server side,reading the data and again incrementing the u.value<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/14 08:40:12;  author: root;  state: Exp;  lines: +1 -1<br />
created a fifo between client,server and server,process<br />
opened the file in write only mode in the requesting client<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/14 08:32:00;  author: root;  state: Exp;  lines: +1 -1<br />
got the kernel key using msgget()<br />
checked the accessibility of the file<br />
using access(0<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/14 08:29:23;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/ipc-using-message-queue-and-semaphores/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>communication using message queue</title>
		<link>https://www.emblogic.com/blog/11/communication-using-message-queue/</link>
		<comments>https://www.emblogic.com/blog/11/communication-using-message-queue/#comments</comments>
		<pubDate>Wed, 12 Nov 2014 18:26:57 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11782</guid>
		<description><![CDATA[RCS file: receiever.c,v enter description, terminated with single &#8216;.&#8217; or end of file: NOTE: This is NOT the log message! &#62;&#62; included all the header files that will be used in the code &#62;&#62; . done [root@(none) msgq]# ci ./receiever.c &#8230; <a href="https://www.emblogic.com/blog/11/communication-using-message-queue/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: receiever.c,v<br />
enter description, terminated with single &#8216;.&#8217; or end of file:<br />
NOTE: This is NOT the log message!<br />
&gt;&gt; included all the header files that will be used in the code<br />
&gt;&gt; .<br />
done<br />
[root@(none) msgq]# ci ./receiever.c<br />
./receiever.c,v    ./receiever.c<br />
revision 1.1 (locked)<br />
done<br />
[root@(none) msgq]# ci ./receiever.c<br />
./receiever.c,v  &gt; defined the message buffer structure<br />
&gt;&gt; got the kernel id using msgget()<br />
&gt;&gt; .<br />
done<br />
[root@(none) msgq]# co -l ./receiever.c<br />
./receiever.c,v  &#8211;&gt;  ./receiever.c<br />
revision 1.2 (locked)<br />
done<br />
[root@(none) msgq]# man msgctl<br />
[root@(none) msgq]# ci ./receiever.c<br />
./receiever.c,v  &gt; gave IPC_STAT command and address of buffer to the msgctl()<br />
&gt;&gt; .<br />
done<br />
[root@(none) msgq]# co -l ./receiever.c<br />
./receiever.c,v  &#8211;&gt;  ./receiever.c<br />
revision 1.3 (locked)<br />
done<br />
[root@(none) msgq]# ci ./receiever.c<br />
./receiever.c,v  &gt; gave the message type to the message buffer<br />
&gt;&gt; gave the string using gets()<br />
&gt;&gt; .<br />
done<br />
[root@(none) msgq]# co -l ./receiever.c<br />
./receiever.c,v  &#8211;&gt;  ./receiever.c<br />
revision 1.4 (locked)<br />
done<br />
[root@(none) msgq]# ci ./receiever.c<br />
./receiever.c,v  &gt; using msgsnd() sending the message from sender to the receiever<br />
&gt;&gt; on the receiever side using msgecv() receieved the message<br />
&gt;&gt; printed the message receieved<br />
&gt;&gt; .<br />
done<br />
[root@(none) msgq]# co -l ./receiever.c<br />
./receiever.c,v  &#8211;&gt;  ./receiever.c<br />
revision 1.5 (locked)<br />
done<br />
[root@(none) msgq]# rlog ./receiever.c </p>
<p>RCS file: ./receiever.c,v<br />
Working file: ./receiever.c<br />
head: 1.5<br />
branch:<br />
locks: strict<br />
	root: 1.5<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 5;	selected revisions: 5<br />
description:<br />
included all the header files that will be used in the code<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5	locked by: root;<br />
date: 2014/11/13 07:55:19;  author: root;  state: Exp;  lines: +1 -1<br />
using msgsnd() sending the message from sender to the receiever<br />
on the receiever side using msgecv() receieved the message<br />
printed the message receieved<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/13 07:53:55;  author: root;  state: Exp;  lines: +1 -1<br />
gave the message type to the message buffer<br />
gave the string using gets()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/13 07:52:43;  author: root;  state: Exp;  lines: +1 -1<br />
gave IPC_STAT command and address of buffer to the msgctl()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/13 07:49:23;  author: root;  state: Exp;  lines: +1 -1<br />
defined the message buffer structure<br />
got the kernel id using msgget()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/13 07:48:36;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/communication-using-message-queue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>complete mdc project</title>
		<link>https://www.emblogic.com/blog/11/complete-mdc-project/</link>
		<comments>https://www.emblogic.com/blog/11/complete-mdc-project/#comments</comments>
		<pubDate>Wed, 12 Nov 2014 18:01:15 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11780</guid>
		<description><![CDATA[RCS file: mdc.c,v Working file: mdc.c head: 1.8 branch: locks: strict root: 1.8 access list: symbolic names: keyword substitution: kv total revisions: 8; selected revisions: 8 description: included all the header files entered the string using gets() &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- revision 1.8 &#8230; <a href="https://www.emblogic.com/blog/11/complete-mdc-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: mdc.c,v<br />
Working file: mdc.c<br />
head: 1.8<br />
branch:<br />
locks: strict<br />
	root: 1.8<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 8;	selected revisions: 8<br />
description:<br />
included all the header files<br />
entered the string using gets()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.8	locked by: root;<br />
date: 2014/11/13 07:14:16;  author: root;  state: Exp;  lines: +2 -2<br />
in decompressing first right shifted the first byte by four and matched those four bytes with the index of master array and printed the value at that index<br />
for the last four bytes,printed the value for that index from the master array<br />
doing this for other bytes<br />
printed the final array<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7<br />
date: 2014/11/13 07:02:05;  author: root;  state: Exp;  lines: +1 -1<br />
ORING the first byte with secong one<br />
and doing this for other bytes<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/11/13 06:59:05;  author: root;  state: Exp;  lines: +1 -1<br />
now for secong index moving the index to the byte and first left shift it by four and then right shift it by four<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/13 06:57:04;  author: root;  state: Exp;  lines: +1 -1<br />
in compression X-ORING the bytes with themselves<br />
moving the index of the first character in the bits<br />
and left shifting them by four<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/13 06:56:09;  author: root;  state: Exp;  lines: +1 -1<br />
using lseek function again moving the cursor to the very first location<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/13 06:53:45;  author: root;  state: Exp;  lines: +1 -1<br />
using for loop matching the every element of the entered array with that of master array<br />
if matched then skip the character<br />
if not matched then include the character in the master array<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/13 06:52:57;  author: root;  state: Exp;  lines: +1 -1<br />
assigned the first character in the master arrayy<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/13 06:52:06;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/complete-mdc-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>complete ipc project using semaphores</title>
		<link>https://www.emblogic.com/blog/11/complete-ipc-project-using-semaphores/</link>
		<comments>https://www.emblogic.com/blog/11/complete-ipc-project-using-semaphores/#comments</comments>
		<pubDate>Mon, 10 Nov 2014 19:47:30 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11760</guid>
		<description><![CDATA[RCS file: server.c,v Working file: server.c head: 1.13 branch: locks: strict root: 1.13 access list: symbolic names: keyword substitution: kv total revisions: 13; selected revisions: 13 description: included all the header files that will be used in the code &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8230; <a href="https://www.emblogic.com/blog/11/complete-ipc-project-using-semaphores/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: server.c,v<br />
Working file: server.c<br />
head: 1.13<br />
branch:<br />
locks: strict<br />
	root: 1.13<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 13;	selected revisions: 13<br />
description:<br />
included all the header files that will be used in the code<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.13	locked by: root;<br />
date: 2014/11/11 09:16:36;  author: root;  state: Exp;  lines: +1 -1<br />
did the same for all the other cases<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.12<br />
date: 2014/11/11 09:14:47;  author: root;  state: Exp;  lines: +1 -1<br />
again set the operation (&#8211;) in the sembuff and forward the data to the client<br />
client receieved the data  and closed the fifo<br />
displayed the result<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.11<br />
date: 2014/11/11 09:13:00;  author: root;  state: Exp;  lines: +1 -1<br />
server now set the operation (++) and reads the data<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.10<br />
date: 2014/11/11 09:10:58;  author: root;  state: Exp;  lines: +1 -1<br />
after processing the data opened the file in write only mode<br />
set the operation (&#8211;) in sembuff<br />
wrote data to the server<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.9<br />
date: 2014/11/11 09:08:27;  author: root;  state: Exp;  lines: +1 -1<br />
wrote data to the respective process<br />
in the process side, read the data<br />
set the operation (++)in the operation so that now the other process may execute waiting in the waiting list<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.8<br />
date: 2014/11/11 09:05:48;  author: root;  state: Exp;  lines: +1 -1<br />
now in parent opened the file in srite only mode<br />
setting the operation (&#8211;) using semop call to make the other processes wait until the current process execution is done<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7<br />
date: 2014/11/11 09:04:33;  author: root;  state: Exp;  lines: +1 -1<br />
created the parent and child processes uding fork<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/11/11 09:01:22;  author: root;  state: Exp;  lines: +1 -1<br />
now using the semop call setting the sembuff operation (++) to release the wait<br />
closed the filr descriptor<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/11 09:00:13;  author: root;  state: Exp;  lines: +1 -1<br />
now the client writes the data and the server reads it<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/11 08:57:13;  author: root;  state: Exp;  lines: +1 -1<br />
in the client side,after opening the file,using the sem buff structure,set the operation (&#8211;)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/11 08:55:39;  author: root;  state: Exp;  lines: +1 -1<br />
created the fifo between the client server and the server process<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/11 08:52:49;  author: root;  state: Exp;  lines: +1 -1<br />
initialised the union value as 1<br />
got the unique kernel key using the semget call<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/11 08:51:02;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/complete-ipc-project-using-semaphores/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>communication between client and server using socket in AF_INET domain</title>
		<link>https://www.emblogic.com/blog/11/communication-between-client-and-server-using-socket-in-af_inet-domain/</link>
		<comments>https://www.emblogic.com/blog/11/communication-between-client-and-server-using-socket-in-af_inet-domain/#comments</comments>
		<pubDate>Fri, 07 Nov 2014 18:55:09 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11741</guid>
		<description><![CDATA[RCS file: ./server.c,v Working file: ./server.c head: 1.6 branch: locks: strict root: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: added all the header files that will be used in the code &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8230; <a href="https://www.emblogic.com/blog/11/communication-between-client-and-server-using-socket-in-af_inet-domain/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./server.c,v<br />
Working file: ./server.c<br />
head: 1.6<br />
branch:<br />
locks: strict<br />
	root: 1.6<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 6;	selected revisions: 6<br />
description:<br />
added all the header files that  will be used in the code<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6	locked by: root;<br />
date: 2014/11/07 18:52:45;  author: root;  state: Exp;  lines: +1 -1<br />
now the client writes and the server reads<br />
and print it<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/07 18:51:27;  author: root;  state: Exp;  lines: +1 -1<br />
the server gives the connect request<br />
the server accepts the client request<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/07 18:50:46;  author: root;  state: Exp;  lines: +1 -1<br />
the server listens for the connest request from the client<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/07 18:49:18;  author: root;  state: Exp;  lines: +1 -1<br />
binding the socket address,fd,and the size of socket address<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/07 18:45:53;  author: root;  state: Exp;  lines: +46 -0<br />
unlinkiked the socket path<br />
gave the condition for error<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/07 18:45:27;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/communication-between-client-and-server-using-socket-in-af_inet-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>creating socket between client and the server in unix</title>
		<link>https://www.emblogic.com/blog/11/creating-socket-between-client-and-the-server-in-unix/</link>
		<comments>https://www.emblogic.com/blog/11/creating-socket-between-client-and-the-server-in-unix/#comments</comments>
		<pubDate>Fri, 07 Nov 2014 18:35:57 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11738</guid>
		<description><![CDATA[RCS file: ./server.c,v Working file: ./server.c head: 1.7 branch: locks: strict root: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: included all the header files that will be used in the code &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8230; <a href="https://www.emblogic.com/blog/11/creating-socket-between-client-and-the-server-in-unix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./server.c,v<br />
Working file: ./server.c<br />
head: 1.7<br />
branch:<br />
locks: strict<br />
	root: 1.7<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 7;	selected revisions: 7<br />
description:<br />
included all the header files that will be used in the code<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7	locked by: root;<br />
date: 2014/11/07 18:32:31;  author: root;  state: Exp;  lines: +1 -1<br />
closed the socket fd and the client socket fd<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/11/07 18:31:18;  author: root;  state: Exp;  lines: +1 -1<br />
now the client writes to the server and the server reads and vice-versa<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/07 18:28:36;  author: root;  state: Exp;  lines: +1 -1<br />
before connecting and accepting thfrom the client<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/07 18:26:58;  author: root;  state: Exp;  lines: +1 -1<br />
giving the connect request from the client<br />
accepting the client request in the server<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/07 18:25:39;  author: root;  state: Exp;  lines: +1 -1<br />
binding the servr socket fd,server address and the server length<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/07 18:22:23;  author: root;  state: Exp;  lines: +1 -1<br />
unlinking the server socket<br />
established a connection between server and the client<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/07 18:15:46;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/creating-socket-between-client-and-the-server-in-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>complete ipc project using pipes</title>
		<link>https://www.emblogic.com/blog/11/complete-ipc-project-using-pipes/</link>
		<comments>https://www.emblogic.com/blog/11/complete-ipc-project-using-pipes/#comments</comments>
		<pubDate>Thu, 06 Nov 2014 18:35:53 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11702</guid>
		<description><![CDATA[RCS file: ./server.c,v Working file: ./server.c head: 1.10 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 10; selected revisions: 10 description: gave all the header files that will be used in the programs created a struct &#8230; <a href="https://www.emblogic.com/blog/11/complete-ipc-project-using-pipes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./server.c,v<br />
Working file: ./server.c<br />
head: 1.10<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 10;	selected revisions: 10<br />
description:<br />
gave all the header files that will be used in the programs<br />
created a struct data for variables that will be used in writing code<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.10<br />
date: 2014/11/07 08:02:43;  author: root;  state: Exp;  lines: +1 -1<br />
now doing this for all the other three requests<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.9<br />
date: 2014/11/07 08:00:24;  author: root;  state: Exp;  lines: +1 -1<br />
after receieving the data from the process<br />
forwarding it to the client side<br />
and displaying the result<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.8<br />
date: 2014/11/07 07:56:16;  author: root;  state: Exp;  lines: +1 -1<br />
did the processing of numbers in the process side<br />
wrote back the result to the server<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.7<br />
date: 2014/11/07 07:52:31;  author: root;  state: Exp;  lines: +1 -1<br />
converted the file descriptors for read and write into integer<br />
and in the process side again converted those file descriptors into characters<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.6<br />
date: 2014/11/07 07:51:05;  author: root;  state: Exp;  lines: +1 -1<br />
created a pipe between the server and the process<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/11/07 07:48:23;  author: root;  state: Exp;  lines: +1 -1<br />
now after creating the child process and creating link between the server and the client,in the parent processreceieved the request from the requestin&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/11/07 07:45:36;  author: root;  state: Exp;  lines: +1 -1<br />
wrote the data to the server for further processing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/07 07:41:37;  author: root;  state: Exp;  lines: +1 -0<br />
in the request side again changed the file descriptors into integer receieved by the argument vector<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/07 07:38:04;  author: root;  state: Exp;  lines: +0 -1<br />
created a file between server and request<br />
changed the file descriptors for read and write into characters<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/07 07:33:38;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/complete-ipc-project-using-pipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>entering the details of students using pointer structures</title>
		<link>https://www.emblogic.com/blog/11/entering-the-details-of-students-using-pointer-structures/</link>
		<comments>https://www.emblogic.com/blog/11/entering-the-details-of-students-using-pointer-structures/#comments</comments>
		<pubDate>Sun, 02 Nov 2014 19:52:07 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11646</guid>
		<description><![CDATA[RCS file: ./struct4.c,v Working file: ./struct4.c head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: defined the header files &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- revision 1.4 locked by: root; date: 2014/11/02 19:42:56; &#8230; <a href="https://www.emblogic.com/blog/11/entering-the-details-of-students-using-pointer-structures/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ./struct4.c,v<br />
Working file: ./struct4.c<br />
head: 1.4<br />
branch:<br />
locks: strict<br />
	root: 1.4<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 4;	selected revisions: 4<br />
description:<br />
defined the header files<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4	locked by: root;<br />
date: 2014/11/02 19:42:56;  author: root;  state: Exp;  lines: +1 -1<br />
displayed the details of each student using loop<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/11/02 19:39:15;  author: root;  state: Exp;  lines: +1 -1<br />
entered the details of each student like name roll no. marks<br />
also stored their values in stuctures<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/11/02 19:34:11;  author: root;  state: Exp;  lines: +1 -1<br />
defined the structure of user defined data type student<br />
allocated memory to that structure<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/11/02 19:27:29;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/entering-the-details-of-students-using-pointer-structures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>communication using pipes</title>
		<link>https://www.emblogic.com/blog/10/communication-using-pipes/</link>
		<comments>https://www.emblogic.com/blog/10/communication-using-pipes/#comments</comments>
		<pubDate>Fri, 31 Oct 2014 15:46:03 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11633</guid>
		<description><![CDATA[RCS file: pipe1.c,v Working file: pipe1.c head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: defined the header files that will be used in the programs allocated memory &#8230; <a href="https://www.emblogic.com/blog/10/communication-using-pipes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: pipe1.c,v<br />
Working file: pipe1.c<br />
head: 1.4<br />
branch:<br />
locks: strict<br />
	root: 1.4<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 4;	selected revisions: 4<br />
description:<br />
defined the header files that will be used in the programs<br />
allocated memory to the string<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4	locked by: root;<br />
date: 2014/10/31 15:32:19;  author: root;  state: Exp;  lines: +1 -1<br />
in another program again converting read from character to integer<br />
reading integers one by one<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/10/31 15:27:41;  author: root;  state: Exp;  lines: +1 -1<br />
created the child process and the parent process<br />
converted the read into charcter<br />
in the child process<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/10/31 15:19:36;  author: root;  state: Exp;  lines: +1 -1<br />
gave the condition for read by file descriptor in pipe function<br />
co -l pipe1.c<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/10/31 15:11:06;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/communication-using-pipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>to print the master array</title>
		<link>https://www.emblogic.com/blog/10/to-print-the-master-array/</link>
		<comments>https://www.emblogic.com/blog/10/to-print-the-master-array/#comments</comments>
		<pubDate>Wed, 15 Oct 2014 16:35:00 +0000</pubDate>
		<dc:creator><![CDATA[Mohit Jangra]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11589</guid>
		<description><![CDATA[total revisions: 5; selected revisions: 5 description: defined the header files to be used in the program &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- revision 1.5 date: 2014/10/16 04:01:32; author: root; state: Exp; lines: +1 -1 printing the master array &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- revision 1.4 date: 2014/10/16 03:56:40; &#8230; <a href="https://www.emblogic.com/blog/10/to-print-the-master-array/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>total revisions: 5;	selected revisions: 5<br />
description:<br />
defined the header files to be used in the program<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.5<br />
date: 2014/10/16 04:01:32;  author: root;  state: Exp;  lines: +1 -1<br />
printing the master array<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.4<br />
date: 2014/10/16 03:56:40;  author: root;  state: Exp;  lines: +14 -1<br />
giving the condition for flag !=1<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.3<br />
date: 2014/10/16 03:50:52;  author: root;  state: Exp;  lines: +12 -0<br />
gave the condition for perror<br />
also the condition for matching the characters with the master array<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/10/16 03:45:13;  author: root;  state: Exp;  lines: +6 -1<br />
opened the file in read only mode<br />
defined the varibles used<br />
allocated the memory to the master array<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/10/16 03:39:36;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/to-print-the-master-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
