Find Jobs
Hire Freelancers

server/client in JAVA

$5-10 USD

ปิดแล้ว
โพสต์ ประมาณ 21 ปีที่ผ่านมา

$5-10 USD

ชำระเงินเมื่อส่งงาน
TO BE PROGRAMMED IN JAVA "JCREATOR" OR EQUIVILENT use sockets to write a simple client-server application to play a Lottery. to select 6 distinct numbers in the range 1-100 and you win if any one of those numbers matches the single number generated at random by the Server. The client/server action should proceed as follows: : Client c1. Connect to server via a connection-oriented socket. c2. Read (from socket) and display the prompt message sent (see step s2 in server) by the server. c3. Input your six lottery selections and send them to the server. [PREF. A SIMPLE LOOP PLS] [login to view URL] (from socket) and display the result of the game, or 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. [login to view URL] for a client connection on this socket [login to view URL] a client connection is accepted send an acknowledgement as a sting of text. s3. Receive and read the list of numbers selected by the client. Check that this list is valid (distinct numbers in the range 1-100), if not, return an error message. s4. Make the lottery draw and see if the client has any winning numbers. Return the result to the client. s5. Close the connection to the client and then loop back and wait for another connection. [PLS PROGRAM IN SIMPLE TERMS, FULLY COMMENTED. PREFERBLY NO POINTERS OR STRUCTS INVOLVED] ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. You must chose an unused server port number above 1024. For example, choose port 8888. * The Server application listens on port 8888 and handles the incoming requests. It may consist of several classes, one to listen, accept connections and revert to listening, and one to draw the lottery number and check whether any client choices have won. The Server should print diagnostic information on the terminal (no GUI is required), listing the status of the server and details of each connection. For example: Server listening on Port 8888, IP number of Client, Connection accepted. It may be helpful to test your Server using telnet before attempting to connect to the client. * In writing your code, make sure to check for an error return from your system calls or method invocations, and display an appropriate message. In Java, this means using IOException(); * i will be running both the client and server on the same machine. Start the server in one window, and then start the client in another window. In the socket, use ‘localhost’ as the name of the machine to connect to. [BASICALLY 2 TERMIANL PROMPTS, NO GUI PLEASE] * Make sure you close every socket that you use in your program. If you abort your program, the socket may still hang around and the next time you try and bind a new socket to the port you previously used (but never closed), you may get an error. Also, please be aware that port ID's, when bound to sockets, are system-wide values and in the UNIX lab other students may be using the port number you are trying to use. Submission Write a report on the design and implementation of your solution, showing code and results: (i) a class diagram outlining the class structure for your proposed solution. (ii) a set of summary tables describing the fields, constructors and methods for each class. (iii) a print out of the Java source code of your complete program. ## Platform SUN SOLARIS UNIX AND WINDOWS (WIN98 & XP)
รหัสโปรเจกต์: 2929994

เกี่ยวกับโปรเจกต์

17 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 21 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
17 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $7 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
4.9 (90 รีวิว)
5.6
5.6
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
4.9 (78 รีวิว)
4.6
4.6
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
4.8 (15 รีวิว)
3.9
3.9
รูปอวาตาร์ของผู้ใช้
See private message.
$5.10 USD ใน 14 วัน
4.9 (24 รีวิว)
3.6
3.6
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
4.8 (9 รีวิว)
3.4
3.4
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
4.8 (6 รีวิว)
2.0
2.0
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
5.0 (1 รีวิว)
0.7
0.7
รูปอวาตาร์ของผู้ใช้
See private message.
$4.25 USD ใน 14 วัน
4.2 (2 รีวิว)
0.7
0.7
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$6.80 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$6.80 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$4.25 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$3.40 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$6.80 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ UNITED KINGDOM
United Kingdom
5.0
2
เป็นสมาชิกตั้งแต่ เม.ย. 28, 2003

การยืนยันลูกค้า

งานอื่นๆ จากลูกค้ารายนี้

The numbers in java
$5-10 USD
ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง