Phase I

In: Science

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

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......

Words: 1450 - Pages: 6

Mkt421 Marketing Plan Phase I Starbucks

...Marketing Plan Phase I: Starbucks MKT/421 November 18, 2013 Pareesa Naveed Marketing Plan Phase I: Starbucks Marketing is an essential part of a business’ strategy for long-term success. Different business can have different views of what marketing means and how to create an effective marketing strategy specifically to meet the customer needs and the needs of the company. A marketing plan must have a defined goal and a vision on how to obtain that goal. The team is tasked to define a marketing plan to introduce Starbuck’s new Home Delivery and Catering Services. This marketing plan will provide an overview of the existing organization and describe the new services being considered. Additionally, the marketing plan will analyze the Strengths, Weaknesses, Opportunities, Threats, and Trends (SWOTT) of these new services. Finally, the plan will describe the research approach the team will use to develop the strategy and tactics to introduce the new Home Delivery and Catering Services. Starbucks opened the first store in the Seattle, Washington Pike Place Market in 1971. Starbucks always wanted to be a different kind of company by celebrating the rich tradition of coffee and by providing a feeling of connection. Starbucks has more than 18,000 stores in 62 countries. The company is the premier roaster and retailer of specialty coffee in the world and strives to bring the company’s heritage and an exceptional experience to life, (Starbucks Corporation, 2013)....

Words: 1978 - Pages: 8

Phase 2

...Jenna Cardone International Economics WTO Phase II February 8, 2014 United Kingdom/European Union The European Union is a union of twenty eight member nations that work together to delegate political and economic issues. These countries have formed a single government that allows each nation to be interdependent on one another and, henceforth, reducing conflict between them. There is the free movement of goods, services, people, and money between each nation. The last one is made easiest through the common currency of the Euro. The only exception is the United Kingdom, who identifies with the Pound instead. The United Kingdom, along with being the only member of the EU that does not identify with the Euro has the ninth largest GDP in the world. The UK has the second largest GDP in the EU, second only to Germany, while the EU is the second highest GDP overall, just behind the United States (I). It just goes to show that while the European Union has some very strong economies in its membership, together they have created a world power. Imports in regards to the EU center primarily around dairy products, sugars and confectionery, and animal products, which, respectively, have MFN averages of 52.9, 32.1, and 20.4. The lowest average MFN is cotton, which is at a value of 0. The rest of the products are between a value of 1 and 20 and, for various reasons, are higher in value than cotton and much less than dairy, sugar, and animal products (II). The goods that......

Words: 1841 - Pages: 8

Phase 4

...LITR201-1402B-04: Literature: A Reflection of Life- PHASE 4 Name: Institution: LITR201-1402B-04: Literature: A Reflection of Life- PHASE 4 PART A Drama is also referred to as a play because it tells a story and is also performed on stage. In addition, drama is similar to plays in that it has a theme, a plot and is often narrated by a persona (Ghent, 2012, 629). Also, drama is also known as a play in that it evokes emotions and has a tone just like a play. During my high school days, the school invited a group of people who performed a play on HIV/AIDs. This was my initial time to timepiece a live stage performance. The characters perfectly represented their roles in that the audience felt as if the characters were real. For example, those characters representing HIV patients appeared weak and sad; the sounds were full of sympathy as they spoke. Every scene had its own sounds that paralleled the theme and purpose of the act (Meyer, 2011, p111). There were cries, mourns and even sounds of desperation. Throughout the drama, the audience was full of sad mood. HIV/AIDs infection was presented as something that people should be afraid of. The audience was also filled with pity and sympathy for the infected characters. Since it was my first encounter to see a live stage drama, the theme, scenes and characters were a great impact to my life and my understanding of what entails a drama. For a elongated time I had wished to be involved in a dramatic act until one day, my......

Words: 1793 - Pages: 8

Phase

...Phase 1 Individual Project Phase 1 - Healthcare Foundations HSS103-1403A-04 : Introduction to Healthcare Delivery Systems 7/17/2014 Tamika Warford Explain the various government roles in health care and explain your examples. The government’s involvement in the market exists along a continuum. limited government regulation in the system allows businesses to freely compete. This type of system, a system with limited or no regulations, is described by the term laissez- faire, or “ hands off.” At the far right, complete regulation could be characterized by government owning and running the entire health care system and mandating all components from the types of services provided to the prices that clinicians could charge or how much salary clinicians could earn. Examples of a fully regulated system are the National Health Service in Great Britain, the French health care system or the health care system of the People’s Republic of China. ­According to a study of the cost components of health care, approximately 14.5 percent of the dollars spent on actual use of medical and health care services ($ 339.2 billion of $ 1.34 trillion in personal health expenditures in 2002) in the United States is spent on regulation ( Conover, 2004), and only $ 170 billion of benefit is derived from that government regulation. The roles played by these two different levels of government are dynamic and differ by political ideology. Some believe that to have equitable ­access to care, the...

Words: 381 - Pages: 2

Phase Diagram

...Phase diagram When f assumes a double-well form a miscibility gap which is a situation where the systems cannot take any arbitrary concentrations is observed. Figure 1 is a phase diagram which relates to the final form of f. The common tangent f defines the points of concentration with the ce1 and ce2 as the values, which is used to establish the coexistence curve in the Tc-plane as illustrated in the bimodal. The positions of concentrations are defined by equal chemical potentials which are the slope of the tangent. The stable single phase is above the bimodal area, the supplement of this area is known to states that are unstable thermodynamically. The curve indicated by spinodal is determined by inflection points cs1, cs2 of f. Metastable (f”> 0 ) and unstable (f”< 0)subareas of the curve are separated with the spinodal. If the systems is reduced below a critical temperature, it undergoes a split into two phases this is known as a homogeneous state. The path to phase division conventionally is referred as spinodal decomposition if it is an inner state of the spinodal and nucleation if it is in a metastable area or region. Phase transition The qualitative changes that occur in equilibrium state of a system and those changes act as externally imposed constraints is referred to as phase transition. The constraints may be physical quantities such as pressure, temperature, concentration or any other. In the subsequent section, I will bear in mind that a......

Words: 346 - Pages: 2

Mkt 571 Week 2 Team Assignment Marketing Plan Phase I

...Team Assignment Marketing Plan Phase I Get Tutorial by Clicking on the link below or Copy Paste Link in Your Browser http://hwguiders.com/downloads/mkt-571-week-2-team-assignment-marketing-plan-phase/ For More Courses and Exams use this form ( http://hwguiders.com/contact-us/ ) Feel Free to Search your Class through Our Product Categories or From Our Search Bar (http://hwguiders.com/ ) MKT 571 Week 2 Team Assignment Marketing Plan Phase I Get Tutorial by Clicking on the link below or Copy Paste Link in Your Browser http://hwguiders.com/downloads/mkt-571-week-2-team-assignment-marketing-plan-phase/ For More Courses and Exams use this form ( http://hwguiders.com/contact-us/ ) Feel Free to Search your Class through Our Product Categories or From Our Search Bar (http://hwguiders.com/ ) MKT 571 Week 2 Team Assignment Marketing Plan Phase I Get Tutorial by Clicking on the link below or Copy Paste Link in Your Browser http://hwguiders.com/downloads/mkt-571-week-2-team-assignment-marketing-plan-phase/ For More Courses and Exams use this form ( http://hwguiders.com/contact-us/ ) Feel Free to Search your Class through Our Product Categories or From Our Search Bar (http://hwguiders.com/ ) MKT 571 Week 2 Team Assignment Marketing Plan Phase I Get Tutorial by Clicking on the link below or Copy Paste Link in Your Browser http://hwguiders.com/downloads/mkt-571-week-2-team-assignment-marketing-plan-phase/ For More Courses and......

Words: 1588 - Pages: 7

Mkt 571 Week 2 Team Assignment Marketing Plan Phase I

...MKT 571 WEEK 2 TEAM ASSIGNMENT MARKETING PLAN PHASE I A+ Graded Tutorial Available At: http://hwsoloutions.com/?product=mkt-571-week-2-team-assignment-marketing-plan-phase-i Visit Our website: http://hwsoloutions.com/ Product Description MKT 571 Week 2 Team Assignment Marketing Plan Phase I, MKT 571 Week 2 NEW PRODUCT LAUNCH MARKETING PLAN Part 1 New Product Launch Marketing Plan, Part 1 Introduction Businesses fulfill a need; two main components of a successful business deal with location and differentiation. Location is important for the overall operations and niche of the business; product differentiation guarantees prolonged growth through an active marketing strategy. All marketing strategies follow three main parts: pre-launch, launch, and post-launch. The pre-launch phase, also called the planning phase. It seeks to identify the product and the company’s position, and then build awareness through segmentation and target goals. Part one involves a lot of research in situation analysis, goal setting, and creating a marketing program. Part two deals with marketing implementation to gain brand personality. Finally, Part three reviews the results and focus on growth analysis. Each phase has sets of criteria or questions that must be considered or answered; each equally vital to the success of the product or service offered by the company. Part one of this marketing plan will detail the pre-launch phase for ZENN Motor Company and the company’s introduction......

Words: 763 - Pages: 4

Phase 1

...Phase 1 After building form we need to make sure we can bring data from our “Notepad” text file into our application. To do that we need to build a menu with all of the options we want. And we need to add the common dialog objects to our form. To do that we go to our tool box and add the “MainMenu” tool, the “OpenFileDialog” tool and the “SaveFileDialog” too. We’ll use the “SaveFileDialog” later. Naturally I change the name of these files to follow Hungarian Notation standards. Then added the dropdown menu for “File” as you can see above. All that’s left is to write the code for the “File | Open” routine. It looks like this: Basically lines 329 thru 333 set up the File Open dialog. It doesn’t open until line 335 executes. When the user pressed the “OK” key the “IF” statement is executed. Line 336 reads the file name and path into our global variable strCurrentFile. Now any routine we write can use that file without using the dialogs. Lines 339 thru 346 counts the number of records in the file. Notice that we read in three variables (strDummy1 thru strDummy3) to account for a single record. And since the count is off by one we decrement the count by one Once we know the number of records in the file we can set up our array. We do that inline 349. We redimension the array to reflect 3 fields and intMax records...

Words: 359 - Pages: 2

Sci203 Lab5 Worksheet Phase 5 I P Carl Steen

...SCI203 Lab5_worksheet_ Phase 5 I P Carl Steen Click Link Below To Buy: http://hwcampus.com/shop/sci203-lab5_worksheet_-phase-5-i-p-carl-steen/ In this lab, you will determine how an invasive species—the zebra and quagga mussel—affects other species in the freshwater lake. Use the animation to help you come up with an answer to the following: •Why do you see increases and decreases in the invasive species population? •What are the implications associated with these alterations to the ecosystem as a whole? The Effects of Zebra and Quagga Mussels Introduced into a Freshwater Lake As you have learned, population dynamics are caused by the biotic potential of the population and the effects of environmental resistance. When there is minimal environmental resistance impacting a population, it will exhibit a population explosion. One reason for minimal resistance could be factors that no longer regulate a population (e.g., predator decline or resource increases). Another reason for a population explosion is the introduction of an invasive species. Invasive species are species foreign to an ecosystem and are not immediately regulated by the environmental restraints of the particular ecosystem that they invade. This in turn allows their populations to grow seemingly uncontrolled and to displace other indigenous populations. Examples of such an invasive species into North America are dreissenid mussels, commonly known as zebra and quagga mussels. Their introduction into......

Words: 316 - Pages: 2

Se571 Course Project Phase I

...SE571 Course Project Phase I Professor Wagner November 13, 2011 Security Assessment: Course Project Phase I Introduction This report focuses on a security assessment of Aircraft Solutions (AS), which is a well-known leader in the design and fabrication of component products and services for companies in the electronics, commercial, defense, and aerospace industry. Headquartered in Southern California, AS depends heavily on its highly trained workforce, with a large skill base, that is beneficial for the company’s production. The goal of this report is to identify potential vulnerabilities or threats within the operations at AS while identifying their risks and consequences to the firm. Security Weaknesses Given the three areas if investigation for potential weaknesses to the security of AS, hardware, software and policy, In terms of AS assets and how they will be affected if a security threat is placed, I have concluded that one of its major assets is its Business Process Management Hardware (BPM), which handles end-to-end processes that deal with multiple systems and organizations. AS’s operations rely on this system to connect customers, vendors, and suppliers. If affected by a security threat, AS would not be able to function as usual and information could be potentially harmed. Therefore, I have decided to focus this assessment on the areas of hardware and policy. For instance, in the area of hardware it is noticeable in the network infrastructure that......

Words: 1296 - Pages: 6

Analysis Phase

...2.0 ANALYSIS PHASE 3.1. Determining System Requirement The analysis phase is to define the problem for planning phase. The system requirements are studied, structured and examined in greater detail with thoroughly studies by the Heritage Hotel current system procedures. Since our system is approved by top management, our Information Systems Development Team has started to determine what system requirement that users expected. During requirement determination, we used several methods to gather current system information and system requirement for Hotel Reservation system. The methods are divided into two categories which is traditional methods and modern method. Traditional methods included interviewing, questionnaire, observation and documentation review. While, modern method includes Joint Application Design (JAD). 3.2. Data Gathering Techniques Analysis is a detailed study of the various operations performed by a system and their relationships within and outside of the system. Analysis was conducted to understand the proposed project, to ensure that it will support business requirements, and build a solid foundation for system development. During analysis phase, all the data will be collected whether in traditional method or modern method or both of them. The traditional approach is to organize and convert the data though system flowcharts, which future developments of the system and simplify communication with the user. 3.3.1. Traditional ...

Words: 4011 - Pages: 17

Sci203 Lab5 Worksheet Phase 5 I P Carl Steen

...SCI203 Lab5_worksheet_ Phase 5 I P Carl Steen Click Link Below To Buy: http://hwcampus.com/shop/sci203-lab5_worksheet_-phase-5-i-p-carl-steen/ In this lab, you will determine how an invasive species—the zebra and quagga mussel—affects other species in the freshwater lake. Use the animation to help you come up with an answer to the following: •Why do you see increases and decreases in the invasive species population? •What are the implications associated with these alterations to the ecosystem as a whole? The Effects of Zebra and Quagga Mussels Introduced into a Freshwater Lake As you have learned, population dynamics are caused by the biotic potential of the population and the effects of environmental resistance. When there is minimal environmental resistance impacting a population, it will exhibit a population explosion. One reason for minimal resistance could be factors that no longer regulate a population (e.g., predator decline or resource increases). Another reason for a population explosion is the introduction of an invasive species. Invasive species are species foreign to an ecosystem and are not immediately regulated by the environmental restraints of the particular ecosystem that they invade. This in turn allows their populations to grow seemingly uncontrolled and to displace other indigenous populations. Examples of such an invasive species into North America are dreissenid mussels, commonly known as zebra and quagga mussels. Their introduction into......

Words: 316 - Pages: 2

Marketing Plan Phase I

...Starbucks New Product Marketing Plan Shanna Cobb-Adams, Terri Corona, Antony Coumans, Andrea Garcia, Mary Hale, Paula Warren MKT 421 April 30, 2012 Mark McClintock Starbucks New Product Marketing Plan When a firm is developing a new product it is important to create a marketing plan for that product. The plan begins by researching the products competitors are offering and the products competitors are lacking. The new product should meet the needs of consumers not currently met in the market. This offers the new product a greater chance of success. The next step in developing the plan should include an analysis of the strengths, weaknesses, opportunities, and threats that the new product will face. The plan should also include the marketing approach and implementation to bring the new product to market. Starbucks Profile Starbucks opened its first store in 1971 in Seattle, Washington, at Pike’s Place Market. Starbucks is known for outstanding coffee, tea, and treats as well as a warm, inviting atmosphere. Starbucks’ Mission is “to inspire and nurture the human spirit – on person, one cup and one neighborhood at a time” (Company Profile, p. 1). As of October 2, 2011 the total amount of Starbucks stores in operation is 17,003. Starbucks values its employees and calls them “partners” to show the value each of them brings to the company. The partners of Starbucks receive full benefit packages and stock options. Starbucks is also a company......

Words: 2001 - Pages: 9

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......

Words: 279 - Pages: 2