<?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; singh.ranjeet</title>
	<atom:link href="https://www.emblogic.com/blog/author/singh-ranjeet/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>Socket Programming with threads</title>
		<link>https://www.emblogic.com/blog/11/socket-programming-with-threads/</link>
		<comments>https://www.emblogic.com/blog/11/socket-programming-with-threads/#comments</comments>
		<pubDate>Mon, 25 Nov 2013 12:03:52 +0000</pubDate>
		<dc:creator><![CDATA[singh.ranjeet]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7464</guid>
		<description><![CDATA[Socket Programming with threads &#160; In this project , I have work over sockets in which I create an project. My project is over how multiple clients send requests to the server and server send the solution to the respective &#8230; <a href="https://www.emblogic.com/blog/11/socket-programming-with-threads/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><span style="font-size: x-large"><strong>Socket Programming with threads</strong></span></p>
<p>&nbsp;</p>
<p><span style="font-size: medium">In this project , I have work over sockets in which I create an project. My project is over how multiple clients send requests to the server and server send the solution to the respective clients. For this project I use tcp/ip protocol and POSIX Threads. In This project I transfer file from server to client. The purpose of using thread is so that many client can access the server simultaneously. So that no client is wait for server request. Because Threads can executes parallel so many clients can access the server same time continuosly. </span></p>
<p>&nbsp;</p>
<p><span style="font-size: medium">This done by both using INET and UNIX. In UNIX it is within the network and in INET it is over the network.</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-size: medium">Firstly, I created server. The system calls use for creating the server are:</span></p>
<ol>
<li><span style="font-size: medium">Socket: This is to create socket for communication. This returns the socket descriptor. </span></li>
<li><span style="font-size: medium">Bind: This is to basically give name to socket &amp; assign port to socket.</span></li>
<li><span style="font-size: medium">Listen: This creates queue in which clients wait for there connection. In this we can select the size of our server,s wait queue. It can defines how many client can wait in the queue.</span></li>
<li><span style="font-size: medium">Accept: This provide another socket descriptor through which server can chat with its clients.</span></li>
</ol>
<p>&nbsp;</p>
<p><span style="font-size: medium">Then, I created several clients. The system call for client are:</span></p>
<ol>
<li><span style="font-size: medium">Socket:To create socket.</span></li>
<li><span style="font-size: medium">Connect:This to provide socket descriptor through which it can chat with server.</span></li>
</ol>
<p>&nbsp;</p>
<p><span style="font-size: medium">In this project, the server accept the connections from different clients and do work as per there request. This project is basically for transfer of file from server to client. client ask for a file from server . Server first check whether the client is legal or not. Because first server ask for the password from the client . If it type the write right password, then server follow the further proceedings .After that clients demand for file . Then server check for that file by opening in read only mode. If file exits,then server send the confirmation to the client. Then client creates that file and open write only mode.</span></p>
<p><span style="font-size: medium">Here server reads data from that file and write into client socket descriptor .On the other hand, clients reads the data through the socket descriptor and write it into the file descriptor of the file.</span></p>
<p><span style="font-size: medium">In this way, I can able to transfer the file from one system to another using the INET. This is the file transfer over the network.</span></p>
<p><span style="font-size: medium">I also use thread for connecting multiple clients to the server. When the server receive accept call from any client it creates thread. This Thread runs the functions which reads the data from the file and write the data in the socket descriptor.</span></p>
<p><span style="font-size: medium">For this project, I use TCP protocol for the transmission of data between client and server. Because TCP is more secure than UDP. In TCP, before transferring the data over the network there is secure connection is created between client and server. After the connection is created then data is start transferring between client and server.</span></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/socket-programming-with-threads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tool chain</title>
		<link>https://www.emblogic.com/blog/10/tool-chain-4/</link>
		<comments>https://www.emblogic.com/blog/10/tool-chain-4/#comments</comments>
		<pubDate>Thu, 03 Oct 2013 11:13:45 +0000</pubDate>
		<dc:creator><![CDATA[singh.ranjeet]]></dc:creator>
				<category><![CDATA[ARM Embedded Processors]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7249</guid>
		<description><![CDATA[successfully built tool chain for ARM.]]></description>
				<content:encoded><![CDATA[<p>successfully built tool chain for ARM.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/tool-chain-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>https://www.emblogic.com/blog/02/6177/</link>
		<comments>https://www.emblogic.com/blog/02/6177/#comments</comments>
		<pubDate>Mon, 18 Feb 2013 11:33:07 +0000</pubDate>
		<dc:creator><![CDATA[singh.ranjeet]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=6177</guid>
		<description><![CDATA[i have done nfs]]></description>
				<content:encoded><![CDATA[<p>i have done nfs</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/02/6177/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
