SlideShare a Scribd company logo
1 of 1
Download to read offline
Your ClO assigns you another project which involves setting up of connections between many
clients and one server. - First of all, write a program that facilitates one client communicating
with the server, in separate windows. - Secondly, while the first client is running, start 10 other
clients that connect to the same server; these clients should most likely be started in the
background with their input redirected from a file. Report what happens to these 10 clients? Do
their connect()s fail, or time out, or succeed? Do any other calls block? Now let the client exit.
Explain what happens. - Thirdly, modify the socket program so that each time the client sends a
line to the server, the server sends the line back to the client. The client (and server) will now
have to make alternating calls recv () and send (). - Finally, modify the socket program so that it
uses UDP as the transport protocol, rather than TCP. You will have to change SOCK_STREAM
to SOCK_DGRAM in both the client and the server. Discuss what happens when two UDP
clients simultaneously connect to the same UDPserver and compare this to the TCP behaviour.

More Related Content

Similar to Your ClO assigns you another project which involves setting up of con.pdf

client server protocol
client server protocolclient server protocol
client server protocolbmuhire
 
Socket Programming by Rajkumar Buyya
Socket Programming by Rajkumar BuyyaSocket Programming by Rajkumar Buyya
Socket Programming by Rajkumar BuyyaiDhawalVaja
 
Chat server nitish nagar
Chat server nitish nagarChat server nitish nagar
Chat server nitish nagarNitish Nagar
 
Choose one of these three options A IPC using FIFO B Shar.pdf
Choose one of these three options A IPC using FIFO B Shar.pdfChoose one of these three options A IPC using FIFO B Shar.pdf
Choose one of these three options A IPC using FIFO B Shar.pdfaghsports
 
Java Networking
Java NetworkingJava Networking
Java NetworkingSunil OS
 
Web and internet technology notes for BCA students
Web and internet technology notes for BCA studentsWeb and internet technology notes for BCA students
Web and internet technology notes for BCA studentsnawejakhatar10063
 
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesEnhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesIJCNCJournal
 
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesEnhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesIJCNCJournal
 
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesEnhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesIJCNCJournal
 
Arun prjct dox
Arun prjct doxArun prjct dox
Arun prjct doxBaig Mirza
 
Client server chat application
Client server chat applicationClient server chat application
Client server chat applicationSamsil Arefin
 
Socket programming assignment
Socket programming assignmentSocket programming assignment
Socket programming assignmentRavi Gupta
 
IRJET- Simulation Analysis of a New Startup Algorithm for TCP New Reno
IRJET- Simulation Analysis of a New Startup Algorithm for TCP New RenoIRJET- Simulation Analysis of a New Startup Algorithm for TCP New Reno
IRJET- Simulation Analysis of a New Startup Algorithm for TCP New RenoIRJET Journal
 

Similar to Your ClO assigns you another project which involves setting up of con.pdf (20)

Socket programming
Socket programmingSocket programming
Socket programming
 
client server protocol
client server protocolclient server protocol
client server protocol
 
Socket Programming by Rajkumar Buyya
Socket Programming by Rajkumar BuyyaSocket Programming by Rajkumar Buyya
Socket Programming by Rajkumar Buyya
 
Java Networking
Java NetworkingJava Networking
Java Networking
 
Wcf faq
Wcf faqWcf faq
Wcf faq
 
Chat server nitish nagar
Chat server nitish nagarChat server nitish nagar
Chat server nitish nagar
 
Week10 transport
Week10 transportWeek10 transport
Week10 transport
 
Choose one of these three options A IPC using FIFO B Shar.pdf
Choose one of these three options A IPC using FIFO B Shar.pdfChoose one of these three options A IPC using FIFO B Shar.pdf
Choose one of these three options A IPC using FIFO B Shar.pdf
 
Java Networking
Java NetworkingJava Networking
Java Networking
 
Web and internet technology notes for BCA students
Web and internet technology notes for BCA studentsWeb and internet technology notes for BCA students
Web and internet technology notes for BCA students
 
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesEnhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
 
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesEnhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
 
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer TechniquesEnhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
Enhancing HTTP Web Protocol Performance with Updated Transport Layer Techniques
 
NP-lab-manual.docx
NP-lab-manual.docxNP-lab-manual.docx
NP-lab-manual.docx
 
NP-lab-manual (1).pdf
NP-lab-manual (1).pdfNP-lab-manual (1).pdf
NP-lab-manual (1).pdf
 
NP-lab-manual.pdf
NP-lab-manual.pdfNP-lab-manual.pdf
NP-lab-manual.pdf
 
Arun prjct dox
Arun prjct doxArun prjct dox
Arun prjct dox
 
Client server chat application
Client server chat applicationClient server chat application
Client server chat application
 
Socket programming assignment
Socket programming assignmentSocket programming assignment
Socket programming assignment
 
IRJET- Simulation Analysis of a New Startup Algorithm for TCP New Reno
IRJET- Simulation Analysis of a New Startup Algorithm for TCP New RenoIRJET- Simulation Analysis of a New Startup Algorithm for TCP New Reno
IRJET- Simulation Analysis of a New Startup Algorithm for TCP New Reno
 

More from amanfurnisher14

You will creose a portollo in which you will irvest 20 in MPL, 30 i.pdf
 You will creose a portollo in which you will irvest 20 in MPL, 30 i.pdf You will creose a portollo in which you will irvest 20 in MPL, 30 i.pdf
You will creose a portollo in which you will irvest 20 in MPL, 30 i.pdfamanfurnisher14
 
you we, a positive tent is a deep purple color, a negative test is ye.pdf
 you we, a positive tent is a deep purple color, a negative test is ye.pdf you we, a positive tent is a deep purple color, a negative test is ye.pdf
you we, a positive tent is a deep purple color, a negative test is ye.pdfamanfurnisher14
 
You supervise an administrative assistant who has been struggling wit.pdf
 You supervise an administrative assistant who has been struggling wit.pdf You supervise an administrative assistant who has been struggling wit.pdf
You supervise an administrative assistant who has been struggling wit.pdfamanfurnisher14
 
[Moon] MoonShot has launched a new aircraft that will take passengers.pdf
 [Moon] MoonShot has launched a new aircraft that will take passengers.pdf [Moon] MoonShot has launched a new aircraft that will take passengers.pdf
[Moon] MoonShot has launched a new aircraft that will take passengers.pdfamanfurnisher14
 
[Nina] Nina desperately wanted a pet fish, but she did not think her .pdf
 [Nina] Nina desperately wanted a pet fish, but she did not think her .pdf [Nina] Nina desperately wanted a pet fish, but she did not think her .pdf
[Nina] Nina desperately wanted a pet fish, but she did not think her .pdfamanfurnisher14
 
[Jenny] Due to her limited budget, emerging fashion designer Jenny Hu.pdf
 [Jenny] Due to her limited budget, emerging fashion designer Jenny Hu.pdf [Jenny] Due to her limited budget, emerging fashion designer Jenny Hu.pdf
[Jenny] Due to her limited budget, emerging fashion designer Jenny Hu.pdfamanfurnisher14
 
[Dove] Dove soap has released a new Bodywash with an automatic pump. .pdf
 [Dove] Dove soap has released a new Bodywash with an automatic pump. .pdf [Dove] Dove soap has released a new Bodywash with an automatic pump. .pdf
[Dove] Dove soap has released a new Bodywash with an automatic pump. .pdfamanfurnisher14
 
[IMC] Disneys use of an integrated marketing communications program .pdf
 [IMC] Disneys use of an integrated marketing communications program .pdf [IMC] Disneys use of an integrated marketing communications program .pdf
[IMC] Disneys use of an integrated marketing communications program .pdfamanfurnisher14
 
[Choose] begin{tabular}{l} hline Choose] Priapulida Phasmid.pdf
 [Choose] begin{tabular}{l} hline Choose]  Priapulida  Phasmid.pdf [Choose] begin{tabular}{l} hline Choose]  Priapulida  Phasmid.pdf
[Choose] begin{tabular}{l} hline Choose] Priapulida Phasmid.pdfamanfurnisher14
 
[Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf
 [Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf [Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf
[Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdfamanfurnisher14
 
[15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf
 [15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf [15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf
[15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdfamanfurnisher14
 
[5 Marks)] Specify a method to generate a random variable from the di.pdf
 [5 Marks)] Specify a method to generate a random variable from the di.pdf [5 Marks)] Specify a method to generate a random variable from the di.pdf
[5 Marks)] Specify a method to generate a random variable from the di.pdfamanfurnisher14
 
[6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf
 [6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf [6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf
[6 marks ] b) Suppose host A sends some data to host D. What is the f.pdfamanfurnisher14
 
[10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf
 [10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf [10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf
[10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdfamanfurnisher14
 
[ 50 points] Given X has the following distribution with parameter p..pdf
 [ 50 points] Given X has the following distribution with parameter p..pdf [ 50 points] Given X has the following distribution with parameter p..pdf
[ 50 points] Given X has the following distribution with parameter p..pdfamanfurnisher14
 
Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf
 Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf
Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdfamanfurnisher14
 
[ Choose ] The controller places her initials manually on the purchas.pdf
 [ Choose ] The controller places her initials manually on the purchas.pdf [ Choose ] The controller places her initials manually on the purchas.pdf
[ Choose ] The controller places her initials manually on the purchas.pdfamanfurnisher14
 

More from amanfurnisher14 (17)

You will creose a portollo in which you will irvest 20 in MPL, 30 i.pdf
 You will creose a portollo in which you will irvest 20 in MPL, 30 i.pdf You will creose a portollo in which you will irvest 20 in MPL, 30 i.pdf
You will creose a portollo in which you will irvest 20 in MPL, 30 i.pdf
 
you we, a positive tent is a deep purple color, a negative test is ye.pdf
 you we, a positive tent is a deep purple color, a negative test is ye.pdf you we, a positive tent is a deep purple color, a negative test is ye.pdf
you we, a positive tent is a deep purple color, a negative test is ye.pdf
 
You supervise an administrative assistant who has been struggling wit.pdf
 You supervise an administrative assistant who has been struggling wit.pdf You supervise an administrative assistant who has been struggling wit.pdf
You supervise an administrative assistant who has been struggling wit.pdf
 
[Moon] MoonShot has launched a new aircraft that will take passengers.pdf
 [Moon] MoonShot has launched a new aircraft that will take passengers.pdf [Moon] MoonShot has launched a new aircraft that will take passengers.pdf
[Moon] MoonShot has launched a new aircraft that will take passengers.pdf
 
[Nina] Nina desperately wanted a pet fish, but she did not think her .pdf
 [Nina] Nina desperately wanted a pet fish, but she did not think her .pdf [Nina] Nina desperately wanted a pet fish, but she did not think her .pdf
[Nina] Nina desperately wanted a pet fish, but she did not think her .pdf
 
[Jenny] Due to her limited budget, emerging fashion designer Jenny Hu.pdf
 [Jenny] Due to her limited budget, emerging fashion designer Jenny Hu.pdf [Jenny] Due to her limited budget, emerging fashion designer Jenny Hu.pdf
[Jenny] Due to her limited budget, emerging fashion designer Jenny Hu.pdf
 
[Dove] Dove soap has released a new Bodywash with an automatic pump. .pdf
 [Dove] Dove soap has released a new Bodywash with an automatic pump. .pdf [Dove] Dove soap has released a new Bodywash with an automatic pump. .pdf
[Dove] Dove soap has released a new Bodywash with an automatic pump. .pdf
 
[IMC] Disneys use of an integrated marketing communications program .pdf
 [IMC] Disneys use of an integrated marketing communications program .pdf [IMC] Disneys use of an integrated marketing communications program .pdf
[IMC] Disneys use of an integrated marketing communications program .pdf
 
[Choose] begin{tabular}{l} hline Choose] Priapulida Phasmid.pdf
 [Choose] begin{tabular}{l} hline Choose]  Priapulida  Phasmid.pdf [Choose] begin{tabular}{l} hline Choose]  Priapulida  Phasmid.pdf
[Choose] begin{tabular}{l} hline Choose] Priapulida Phasmid.pdf
 
[Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf
 [Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf [Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf
[Ch 7] JCNickel Corporation has issued zero-coupon corporate bonds wi.pdf
 
[15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf
 [15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf [15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf
[15 Marks] Let H be a class of binary classifiers over a set Z. Let D.pdf
 
[5 Marks)] Specify a method to generate a random variable from the di.pdf
 [5 Marks)] Specify a method to generate a random variable from the di.pdf [5 Marks)] Specify a method to generate a random variable from the di.pdf
[5 Marks)] Specify a method to generate a random variable from the di.pdf
 
[6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf
 [6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf [6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf
[6 marks ] b) Suppose host A sends some data to host D. What is the f.pdf
 
[10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf
 [10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf [10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf
[10] for name, info in bg_diet.1tems () if S120 and DBO status - .pdf
 
[ 50 points] Given X has the following distribution with parameter p..pdf
 [ 50 points] Given X has the following distribution with parameter p..pdf [ 50 points] Given X has the following distribution with parameter p..pdf
[ 50 points] Given X has the following distribution with parameter p..pdf
 
Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf
 Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf
Zwiebels Cycles, Inc Balance Sheet as of December 31, 2022 (in thou.pdf
 
[ Choose ] The controller places her initials manually on the purchas.pdf
 [ Choose ] The controller places her initials manually on the purchas.pdf [ Choose ] The controller places her initials manually on the purchas.pdf
[ Choose ] The controller places her initials manually on the purchas.pdf
 

Recently uploaded

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 

Recently uploaded (20)

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 

Your ClO assigns you another project which involves setting up of con.pdf

  • 1. Your ClO assigns you another project which involves setting up of connections between many clients and one server. - First of all, write a program that facilitates one client communicating with the server, in separate windows. - Secondly, while the first client is running, start 10 other clients that connect to the same server; these clients should most likely be started in the background with their input redirected from a file. Report what happens to these 10 clients? Do their connect()s fail, or time out, or succeed? Do any other calls block? Now let the client exit. Explain what happens. - Thirdly, modify the socket program so that each time the client sends a line to the server, the server sends the line back to the client. The client (and server) will now have to make alternating calls recv () and send (). - Finally, modify the socket program so that it uses UDP as the transport protocol, rather than TCP. You will have to change SOCK_STREAM to SOCK_DGRAM in both the client and the server. Discuss what happens when two UDP clients simultaneously connect to the same UDPserver and compare this to the TCP behaviour.