Open Ram-Aditya opened 6 years ago
Hello. I would like to claim this issue in java for myself. Thank you.
@ColesSA Thank you for showing interest in contributing to our repository. Sure you can go ahead and start working on it :)
@ColesSA any progress? We would like to see a PR soon :)
Hello. I would like to claim this issue for python.
@rajat1433 , go ahead :)
Done!!
@ColesSA Sorry, since you haven't submitted a pull request within the time limit, we will be handing over the implementation in Java to the next person requesting it. Although you can still claim the implementation for either C or C++.
Description
Implement a simple TCP protocol to open a TCP connection and retrieve data from the client.
Consider a function named as client() as the client and the function named server() as the server. The communication between the client and server is through calling one function from the other. The data to be passed is passed as an argument to the called function. The data returned by the server() function can be regarded as the response that the server provides to its client. For your implementation, there is no need to use any sort of addressing mechanisms such as IP addresses.
We would like you to simulate the following scenario:
Client wants to access a static data stored in a variable called “client_data” which has a randomly initialized value. The entire process of retrieving data from the server will be done in the 3 steps.
Open TCP connection as per the TCP protocol (using request and acknowledgment).
Client requests the “client_data”. Client and server communicate to share data.
Client closes the connection.
After each step, i.e whenever the client calls server/whenever the server responds, print appropriate statements to the screen stating the source and destination of the messages exchanged and the content and types of each of these messages .
Details
Technical Specifications:
Type of issue: No more than one implementation will be accepted for each language. Once the implementation for a language has been taken up (i.e if it is checked in the 'Issue Progress' section), you must choose from the remaining.
Time Limit: Issues will be given on a first-come, first-serve basis. Once you take this issue up, you must complete it within 3 days, failing which the issue will be allocated to the next person who requested for this issue.
Additional Instructions:
Issue progress
Resources
https://www.lifewire.com/tcp-transmission-control-protocol-3426736 Refer https://en.wikipedia.org/wiki/Transmission_Control_Protocol under the section 'Protocol operation'.
Directory Structure
For this issue, use the following directory of theHacktoberfest-2k18 repository:
/systems/networks/tcp/function_call/language_name
(where language_name is one of the languages mentioned above.)
Note
Please claim the issue first by commenting here before starting to work on it.