Premium Essay

Phase I

In:

Submitted By sathishrajarani
Words 1244
Pages 5
ECHO CLIENT AND ECHO SERVER

echoserver.c

#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<unistd.h>

int main(int argc, char **argv)
{
int clnt_fd,serv_fd; struct sockaddr_in serv_addr; char c; serv_fd=socket(AF_INET,SOCK_STREAM,0); serv_addr.sin_family=AF_INET; serv_addr.sin_port=htons(atoi(argv[1])); serv_addr.sin_addr.s_addr=INADDR_ANY; bind(serv_fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)); listen(serv_fd,1); clnt_fd=accept(serv_fd, NULL, NULL); while(read(clnt_fd, &c, 1)) write(clnt_fd, &c, 1); close(clnt_fd); close(serv_fd); return 0;
}

echoclient.c

#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<unistd.h>

int main(int argc, char **argv)
{
int clnt_fd; struct sockaddr_in serv_addr; char c; clnt_fd=socket(AF_INET,SOCK_STREAM,0); serv_addr.sin_family=AF_INET; serv_addr.sin_port=htons(atoi(argv[2])); serv_addr.sin_addr.s_addr=inet_addr(argv[1]); connect(clnt_fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)); while((c=(char)getchar())!=EOF) { write(clnt_fd, &c,1); read(clnt_fd, &c, 1); putchar((int)c); } close(clnt_fd); return 0;
}

FILE TRANSFER

fileserver.c

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/ioctl.h>
#include<net/if_arp.h>
#include<arpa/inet.h>

int main()
{
FILE *fp; int sd,cd,b; char fname[50],op[100]; struct sockaddr_in sadd,cadd; socklen_t clen=sizeof(cadd); sd=socket(AF_INET, SOCK_STREAM, 0); if(sd!=-1) printf("Socket is created"); else printf("Socket is not

Similar Documents

Free Essay

Marketing Phase I

...With the sustainability policy Lowe’s has in place makes them a target company to sell the new solar awnings to. Lowe’s is already a company established in making the world greener, and with the new solar awnings team B is introducing it will help keep the world green. There are many different types of solar products that are big and are costly and hard to install. With the new solar awnings it will be easy and no yard space will be needed. Lowe’s is a company that started out as a small hardware store in 1946. Over the last 66 years Lowe’s has became the second largest home improvement chain. Lowe’s stock everything a homeowner needs to maintain their home. From the sidewalk to the back yard and everything in between. Lowe’s believes in keeping the world green. They state in their sustainability policy that “Sustainability involves using resources more efficiently and in ways which benefit the environment, customers, business and local communities. Operating our business more sustainably means considering the environmental impacts of operations in Lowe's stores, offices and supply chain and considering the lifecycle impact of the products and services used and sold.” With know this is makes Lowes a good place to go to introduce the new solar awnings. Lowe’s also does installations and the awnings will be something they could offer in this service. Offering this service could make this product a must have seeing how customers want to save on energy cost but does not have the...

Words: 279 - Pages: 2

Free Essay

Limits for Cpm Functions

...reduction of a very simple front-end block for the calculus of phase transition metrics on a continuous phase modulation (CPM) receiver. A quasi-optimum receiver of very low complexity is attained by splitting the function of the optimum receiver bank filters in two blocks: calculus of projections coefficients on a low dimensional space of Walsh functions followed by simple matrix calculus. A sequence detection algorithm follows this block. The presented approach enables the reduction of the matched filters or correlators to just two integrators, regardless of the CPM scheme. Research on the reduction limits of the space dimension is conducted using catastrophic M-ary CPM schemes, taking advantage of their very low number of phase states. Performance of 1REC h=1/2 16-ary scheme is for the fist time presented. A rule is defined concerning the number of Walsh functions that must be used. That outcome proves to be valid for two CPM schemes of high power gain. The receiver is tested under additive white gaussian noise (AWGN). The carrier frequency is fc, where ωc=2πfc, ϕ0 is the arbitrary initial phase and Es is the energy per symbol, related with the bit energy by Es=log2(M)⋅Eb. Channel symbols are γi∈{±1, ±3, ⋅⋅⋅, ±(M-1)}, forming the M-ary sequence γ . Each symbol γi carries log2(M) bits as a result of a natural mapping of the information bits stream α. The information carried by NS channel symbols is keyed in signal’s phase: ϕ (t , γ ) = 2π...

Words: 654 - Pages: 3

Free Essay

Dimethyl Sulfide (C2H6S) Thermo Properties

...CHEG 231011 Thermodynamics I Project Report Compound: Dimethyl Sulfide (C2H6S) Abstract: This project focuses on the thermodynamic properties of dimethyl sulfide (C2H6S). This report mainly consist of a basic introduction for C2H6S from chemical, physical, environmental, industrial sights, a methodology part to show how to generate the thermodynamic charts and a rankine refrigeration cycle for C2H6S, a result part of all the charts and cycle I get from mat lab and other calculation methods, a brief discussion part between the thermodynamic charts and the chemical, physical, environmental, industrial significance. Introduction 1. Basic chemistry. C2H6S: Structure: [pic] [pic] Molecular weight: 62.134 Boiling Point: 38 °C (311 °K) Freezing Point: -98.72 °C (174.88 °K) Triple Point Temperature (Ttri): 174.85°K Critical Temperature (Tc): 503 °K Critical Pressure (Pc): 55.30 bar Critical Molar Volume (Vc): 0.2066 L/mol Critical compressibility factor (Zc):0.273 Acentric factor (ω): 0.191 Antoine Equation Parameters A: 4.28713, B: 1201.134, C: -29.906 2. Compound uses. Dimethyl sulfide (DMS) is a key compound in global sulfur and carbon cycles. a) chemical reactant Dimethyl Sulfide will undergo some types of reactions and used as a source to produce several chemical compounds. [pic] (b) Food and Beverage Component DMS is a primary aroma and flavor compound to make beer character. It is also used in other food applications...

Words: 2725 - Pages: 11

Premium Essay

Iodine

...Department of Chemistry PHYSICAL CHEMISTRY LABORATORY I Liquid-Liquid Equilibrium in a Ternary System #03 Anas Ahmed Al-Aidaros 200935483 Sec. 01 Instructor: Dr. Joanna Pajak Introduction: Objective Determination of the solubility limits in a ternary system of water and two other liquids, one of which is completely miscible and the other is partly miscible with water. According to the phase rule of Gibbs the variance F (number of degrees of freedom) of a system at equilibrium is equal to the number of components c minus the number of phases p plus 2, provided that the equilibrium is influenced only by temperature, pressure, and concentration. A system with three independent components has F=5-P degrees of freedom. An invariant point in a ternary system therefore contains five different phases in equilibrium with each other. An invariant point can for example consist of a vapor phase, a liquid phase, and three solid phases in equilibrium with each other. A ternary system with three phases (solid-liquid-vapor) in equilibrium with each other has two degrees of freedom. If the temperature is fixed, one degree of freedom remains. A phase diagram isotherm showing a ternary system with a vapor phase and a liquid phase requires therefore a line to mark the concentration range in which a solid phase is in equilibrium with the other two phases. A point needed to mark concentrations where two solid phases are in equilibrium with liquid and vapor. Experimental: Chemical...

Words: 562 - Pages: 3

Free Essay

Jess Westerley Case Study

...would you do first? How would you time phase it? What are the critical (pivotal) actions that must succeed? Based upon my reading and analysis of the Jess Westerly case study, I would have implemented a high-involvement, phased change strategy. Changing the software-as-a-service (SaaS) sales approach from targeting of small and medium business to large organizations is a strategic change for Kauflauf. In order for changes to be made, it is necessary to implement through phases. Key elements are leadership engagement and compensation design. In order to inform my approach with industry best practices, I interviewed a Saas sales leader. To illustrate and frame my approach, I will use Kurt Lewin’s three-phase model for change. In Phase one, we must unfreeze the system. During the first three months, the CEO of Kauflauf must champion the change to pursue SaaS contracts with large organizations (Sales Class 1-3 firms, $500,000+ annual revenue). Using Jess Westerly’s data affirming the opportunity for 30% growth, the CEO must communicate the organization’s change in client targeting; he must also indicate the implied crisis: only those SaaS firms that seek and earn business with Class 1-3 firms will survive and thrive. By creating a compelling need to do business differently, the CEO will create a new, more malleable state allowing the system to be amenable to change interventions (Burke, pg 124). Sponsored by the CEO, I would conduct training of Regional Sales...

Words: 750 - Pages: 3

Free Essay

Maintenance Concept

...control, all composite blades, and individual line-replaceable blades. Compatible with most Allison and Rolls Royce engine installations. NP2000 Maintenance Concept The NP2000 propeller system maintenance concept is based on phase inspections according to the number of flight hours. The interval of these inspections is 500, 1,000, 1,500 flight hours. Because of planning purposes, these phase inspections contain periodic maintenance tasks, which would be otherwise performed according to calendar time. Exceptions are inspections such as Pre-flight inspection, Post-flight, conditional, and turn around inspections that are performed at the (O) level. NP2000 Main Features Main features are introduced below: * Compatible with Allison and Rolls Royce engine installations. * Electronic control. * Individual line replaceable blades. * Reduced maintenance costs. * Fewer mechanical parts. * Higher reliability. * Reduced noise. * Lower vibration. * Reduced feather drag. * Tighter speed governing. NP2000 Basic Data * Diameter 13 ft 5 in * 5100 SHP rating, 5610 SHP growth * 1106 RPM Maintenance Levels A traditional three-level maintenance concept, consisting of Organizational level (O), Intermediate level (I) and Depot level (D) maintenance was adopted for the NP2000. Organizational Level Maintenance The “O” level maintenance is performed by operational units performing the following maintenance actions: * Pre-flight inspection...

Words: 649 - Pages: 3

Free Essay

Stages of Multimedia Project

...and briefly discuss the stages of a multimedia project. Be sure to define the milestones that mark the completion of the phase. Firstly, you must develop a sense of its scope and content, having a rough idea in your head on how to design your project. Then I have to develop an organized outline and a plan that is rational in terms of the skills, time, budget, tools, and resources that I have in hand. Scheduling, once I have worked out with my plan that include the phases, tasks and work items that I feel will be required. I have to layout these elements along a timeline. This will usually include milestones at which certain deliverables are to be done. To create a schedule I must estimate the total time required for each task. After scheduling, estimating the cost of the project will be relevant to estimate the entire cost after the project has been completed. It is relatively simple matter to estimate cost and effort, For example, the manufacturing industry. Having a progressive accounts and billing will be saved to review the financial part of the project, for example preparing a cost sheet. Finally, write and structure the elements of the multimedia project. Potential clients do not have a clue about how to make multimedia, but they do have a vision on their project. As a project designer, I will know what, my clients want and how to satisfy them. I occasionally may encounter a more formal request of proposal. This are typically detailed documents from large corporation...

Words: 274 - Pages: 2

Free Essay

Transformational

...this writing exercise I will explain the transformational change. The transformational change as described in the book is when learning resulting from a significant experience that may be renewing where the outcome can be far-reaching. This cycle moves through the stages of noticing a particular problem. Once you recognize this problem you must confront it intensely, integrate a new perspective, and find a solution. You must also set new assumptions. When dealing with the transformational change, it requires an awful amount of reflection. This process can be stressful, and painful. Transformation can separate life into distinct before & after realities as mentioned in the textbook. In my life I’ve had my own transformational learning experience. This experience came when I had to prepare myself for motherhood when I was really just beginning to enjoy my college years. I had to realize that I couldn’t go out and party anymore but I instead had to prepare to be a great role model for my child. This was a present transformational experience for me. In the past a transformational change for me would have to be preparing for high school graduation. During this time I felt as if I had to grow up, and stop being immature. It was time for me to prepare for the real world, and all the responsibilities that comes with it. In chapter 5, I also read about Jack Mezirow’s seven phases. The one I would say I use would have to be self-examination. I chose this phase because in order to...

Words: 310 - Pages: 2

Free Essay

Gaussian Beam

...Gaussian Beams Enrique J. Galvez Department of Physics and Astronomy Colgate University Copyright 2009 ii Contents 1 Fundamental Gaussian Beams 1.1 Spherical Wavefront in the Paraxial region 1.2 Formal Solution of the Wave Equation . . 1.2.1 Beam Spot w(z) . . . . . . . . . . 1.2.2 Beam Amplitude . . . . . . . . . . 1.2.3 Wavefront . . . . . . . . . . . . . . 1.2.4 Gouy Phase . . . . . . . . . . . . . 1.3 Focusing a Gaussian Beam . . . . . . . . . 1.4 Problems . . . . . . . . . . . . . . . . . . . 1 1 3 6 8 8 9 10 12 15 15 17 20 21 25 25 26 26 27 29 30 31 31 33 35 35 36 39 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 High-Order Gaussian Beams 2.1 High-Order Gaussian Beams in Rectangular Coordinates 2.2 High-Order Gaussian Beams in Cylindrical Coordinates . 2.3 Irradiance and Power . . . . . . . . . . . . . . . . . . . . 2.4 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Wave-front interference 3.1 General Formalism . . . . . . . . . . . . . . . . 3.2 Interference of Zero-order...

Words: 13971 - Pages: 56

Premium Essay

Concord Bookshop Paper

...Phases of Organizational Change: Concord Bookshop Conflict University of Phoenix Phases of Organizational Change: Concord Bookshop Conflict Organizational change is a never-ending process. Knowing how to approach, present, and effectively implement change depends on several factors. The three phases of Lewin’s Force Field Model: unfreezing, change, and refreezing allow the change process to take place (Borkowski, 2005). Using these phases change can be presented, discussed, and ultimately implemented with success. For organizations to continue to grow and become ever more prosperous, change has to be continuously refined. In this paper, a brief discussion of the phases of organizational change as well as an examination of the organizational change processes not implemented in the Concord Bookshop conflict will be conducted. Lewin’s Phases of Organizational Change Unfreezing Borkowski (2005) states, “The forces and workers involved in perpetuating resistance acquire an understanding of variances that exist between current practices and behavior and desired activities and behavior” (pp. 384-385). The organization must perform an investigation to see what type of resisting forces they may face in regard to the proposed change. An organization will not be effective in creating change unless motivation within the organization is manifested. Understanding that change requires some new knowledge to be learned and some old knowledge to be unlearned. This fact is...

Words: 930 - Pages: 4

Free Essay

Testing

...Johnathan Yow Jian Jia (13084413) Marketing Management Tutorial Group: 4 Reading 6: Collaborative advantage 1. Collaborative advantage is synergy achieved by integrating resources plus expertise of one organization and provides a foundation or counterbalance to “Competitive Advantage” 2. The 3 main fundamental characteristics of collaborative advantage is that they must yield benefits for the partners and they are more than just the deal. They are also alliances that both partners ultimately deem successful involve collaboration rather than mere exchange. Collaborative advantage cannot be controlled by formal systems but require a dense web at interpersonal connections and internal infrastructures that enhance learning. 3. There are also 3 varieties of relationships which are mutual service consortia that means similar industries pool their resources together to gain benefit too expensive to acquire alone. Joint ventures are companies pursuing an opportunity that requires capabilities from each of them and value-chain partnerships are supplier-consumer relationships. 4. Relationships between companies begin, grow and develop much like relationship between people. Like romances and alliances, they are built on hopes and dreams, what might happen if certain opportunities are pursued? 5. The 8 I’s that create a successful we are first individual excellence, importance, independence, investment, information, integration, institutionalization and integrity. ...

Words: 346 - Pages: 2

Free Essay

Technology Management

...Time and Cost Management Plan: A detailed Time and cost plan have been itemized for the Website development project. The Budget over time phase has been itemized based on the phases of the project and further it has been itemized based on the different activities of the project taking place in a definite week. The budget has been tabulated based on the activity and the on the week. The final budget has been calculated based on the phases. The detailed information is as follows: Time and Cost: Phase | Activities | Tasks | Deliverables | Dates | Cost | Project Requirements | Develop Business Requirements. | Collect Requirements from client and register a domain name.Draft the proceedings and document them.Produce a final version of the Business Requirements.(User Signoff) | Preliminary Business Requirements | 6/16/2014 | $360 | | Develop Technical Requirements. | User need to fill the form and register.Provide security by using secure pages such as HTTPS.Estimate hosting space for website.Identify appropriate website development platform and suggest to the client.Draft the proceedings and document them.Produce a final version of the Technical Requirements.(User Signoff) | Preliminary Technical Requirements. | 6/23/2014 | $400 | | Develop User requirements. | Collect required webpages names.Collect menu navigation requirements.Collect Access Requirements from client. | User Requirements. | 06/30/2014 | $160 | | | Draft the proceedings and document them.Produce...

Words: 787 - Pages: 4

Premium Essay

New Product Development

...estimated cost, expected rate of return and profitability (this should be easy as the company is been run from the garage of the band leader who is not expecting to receive any pay for the next 3 years. Introduction/Launch: Once the CDs have been tested to make sure it works the way it should, it is made available to customers, most times some companies will launch it at once or launch it to a select group or in phases. The similarities can be seen the ideas stated above and the New-Product development process in the text book such as the Concept Development which can be compared to the idea generation, development stage some of the stages intertwine with another. The Product design which is the stage of designing the actual product which is similar to the development and testing phase of the product to ensure it meets the specifications and durability expected. Pilot Production/ Testing in this stage the products requires testing before they are put into full production, this stage can be compared to introduction and launch phase, it can be launched in phases to get feedback before the full launch of the product. Schroeder, R.G., Goldstein, S.M., Rungtusanatham, M.J. (2013). Operations Management in the Supply Chain: Decisions and Cases. New-Product Development process, Pg...

Words: 309 - Pages: 2

Premium Essay

Nt1310 Unit 4

...206. What is Half Power Frequency? A) Voltage gain reduced to 50% B) Voltage gain reduced to 60.7% C) Voltage gain reduced to 70.7% D) Voltage gain reduced to 80.7% ANSWER: C 207. If the voltage gain drops to 70.7% of its midrange value, it is said to be _______ A) attenuated B) down 6 dB C) down 3 dB D) down 1 dB ANSWER: C 208. What is the gain that occurs between the lower and upper critical frequencies in amplifier? A) midrange gain B) critical gain C) bandwidth gain D) decibel gain ANSWER: A 209. What can be measured using the decibel? A) voltage gain B) power gain C) attenuation D) all of these ANSWER: D 210. Voltage gain in dB is ______ A) log Av B) 10 log Av C) 20 log Av D) Av ANSWER: C 211. Power gain in dB is ________. A) log Av B) 10 log Av C) 20 log Av D) Av ANSWER: B 212. For the low-frequency response of a BJT amplifier, the maximum gain is at ________. A) RB = 0 Ω B) RC = 0 Ω C) RE = 0 Ω D) RS= 0 Ω ANSWER: C 213. Where the Miller effect capacitance is not involved in BJT configuration? A) Common-emitter B) Common-base C) Common-collector D) All of the above ANSWER: B 214. What does positive and negative sign of dB represents? A) positive-amplification, negative-attenuation B) Positive-attenuation, Negative-amplification C) Zero value D) sign can be neglected ANSWER: A 215. At the midrange of the amplifier, the voltage gain of 100. If 6 dB gain decreases, what happens to the gain? A) 0 B) 70.7 C) 50 D) 20 ANSWER: C 216. If the frequency changed from 1 kHz to 10...

Words: 767 - Pages: 4

Premium Essay

Marketing Plan Phase I

...Marketing Plan Phase I This paper will discuss the organization of Nike and will give a brief description of the new product that is being offered. The paper will also offer an explanation of the importance of marketing to our selected organizations success. Team C will also give a breakdown of the SWOTT analysis on our new product and provide the marketing approach we will use to help develop and nurture our new product. Nike Overview Nike is a well-known sports retailer that develops as well as designs sports apparel such as athletic shoes, clothing apparel, sporting equipment even athletic jewelry. Nike is the largest retailer of sports apparel across the globe. Nike is known as one of the gurus of marketing; Nike markets its products through commercials, magazines, billboards, and stores, even the Internet. Nike has a strategy for success which is to achieve long term success and to sustain continuous revenue, and they intend to continue this pattern by staying ahead of the competition and creating new and unheard of innovative product ideas. The new product that will be introduced under the Nike organization will be discussed in the duration of this paper. Soul to Sole The Nike Company is busy with the design of a new product, Soul to sole foot wear. For every pair sold, Nike will donate a pair to people in need and organizations that help people in need. This is Nike's way of giving back to the community. The new product will have worldwide marketing and be sold all...

Words: 1450 - Pages: 6