Udp java
4716
£80(approx. $100)
- Posted:
- Proposals: 1
- Remote
- #71056
- Archived
Description
Experience Level: Intermediate
client-server programs to obtain your coursework marks. You should input your
student ID number from the client and if this ID matches a record held by the server,
the server will send your coursework marks to you. The client/server action should
proceed as follows:
Client
c1. Connect to server via a connectionless (UDP) socket.
c2. Read (from socket and packet) and display the prompt message
sent (see step s2 in server) by the server.
c3. Input your ID number and send it to the server.
c4.Read (from socket) and display your coursework mark, an error
message that is returned by the server (see step s4 in server).
c5. Close the connection
Server
s0. [Initialization] Create a socket on one of the port numbers in the
range above 1024.
s1.Wait for a client connection on this socket
s2.When a client connection is established, send an acknowledgement
as a string of text.
s3. Receive and read the student ID number sent by the client. Check
that this student ID is valid, if not, return an error message.
s4. Find the coursework mark requested and send to the client.
s5. Close the connection to the client and then loop back and wait for
another connection.
student ID number from the client and if this ID matches a record held by the server,
the server will send your coursework marks to you. The client/server action should
proceed as follows:
Client
c1. Connect to server via a connectionless (UDP) socket.
c2. Read (from socket and packet) and display the prompt message
sent (see step s2 in server) by the server.
c3. Input your ID number and send it to the server.
c4.Read (from socket) and display your coursework mark, an error
message that is returned by the server (see step s4 in server).
c5. Close the connection
Server
s0. [Initialization] Create a socket on one of the port numbers in the
range above 1024.
s1.Wait for a client connection on this socket
s2.When a client connection is established, send an acknowledgement
as a string of text.
s3. Receive and read the student ID number sent by the client. Check
that this student ID is valid, if not, return an error message.
s4. Find the coursework mark requested and send to the client.
s5. Close the connection to the client and then loop back and wait for
another connection.
James F.
0% (0)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
3 May 2011
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies