How Software Gets Done  


(No Login on Secured Page)

Custom Software Buyers
Request new bids
Search Coders
My Account
 
My Buyer 'To Do' List
 
My bid requests
  My escrow account
 
My General Info
Verification
 
Help for Buyers
Articles for Buyers
FAQ for Buyers
Latest News
 

Custom Software Coders

Newest open work
Browse all work
Search all work
My Account
 
My Coder 'To Do' List
 
My bids
 
My General Info
  My credit account
 
Help for Coders
Articles for Coders
FAQ for Coders
Latest News
 

Affiliates

My account
 
My pipeline
 
My credit account
 
Help for Affiliates
Latest News
 
Newest Open Bid Requests.
Splash screen design
By QUIET on May 22
Max Bid: Open to fair suggestions


Icon creation or location
By QUIET on May 22
Max Bid: Open to fair suggestions


disable new windows when projecting
By english on May 22
Max Bid: $75


Powerpoint viewer...
By sbazzi on May 22
Max Bid: $1,200


Token Parser
By smoothpd on May 22
Max Bid: $100


PHP (PAYPAL IPN HELP URGENT)
By x-linux on May 22
Max Bid: $15


Click here to put this ticker on your own site

Open Work Categories.
Database 
(149 open)
   Access 
(56 open)
   MySQL 
(67 open)
   Oracle 
(10 open)
   SQL Server 
(62 open)
   Other DB 
(24 open)
Documentation / Tech Writing 
(28 open)
Data Entry 
(19 open)
Game Development 
(18 open)
Graphics / Art / Music 
(60 open)
   Graphics 
(62 open)
     3d Animation 
(14 open)
   Art (Misc.) 
(23 open)
   Music 
(15 open)
   3d Modeling 
(14 open)
Language Specific 
(116 open)
   ASP 
(67 open)
   ASP .NET 
(18 open)
   C# 
(32 open)
   C++ / C 
(112 open)
   Carbon (Mac OS) 
(3 open)
   Cocoa / Obj-C 
(1 open)
   Cold Fusion 
(10 open)
   Delphi 
(33 open)
   Java 
(52 open)
   JSP 
(3 open)
   Perl 
(38 open)
   PHP 
(85 open)
   XML/XSL 
(24 open)
   Visual Basic 
(137 open)
   Visual Basic .Net 
(64 open)
   Other 
(60 open)
Misc 
(38 open)
   CAD 
(4 open)
MultiMedia 
(38 open)
Network 
(36 open)
   Network Design 
(10 open)
   Network Implementation 
(12 open)
Platforms 
(71 open)
   Windows 
(145 open)
     MS Exchange 
(3 open)
     MS Office 
(15 open)
     Other 
(12 open)
   Darwin 
(3 open)
   Internet Browser 
(44 open)
   Linux 
(54 open)
   UNIX 
(31 open)
   Hand Held/PDA Programming 
(14 open)
Requirements 
(10 open)
Security 
(37 open)
Testing / Quality Assurance 
(16 open)
Web 
(167 open)
   Page Design 
(89 open)
   Flash 
(61 open)
   Web Services 
(75 open)
   Web (Other) 
(94 open)
Training 
(15 open)
   Computer Based 
(15 open)
 
Other
 
Other Sites

Download the free Rent A Coder IE toolbar!
 
Show Bid Request

server/client in JAVA
Bid Request Id: 60195
Bookmark in my 'To Do' list
Posted by: lyrical_ganster (0 ratings)
Non-action Ratio: Below Average - 50.00%
Posted: Apr 28, 2003
3:08:32 PM EDT
Bidding Closes: May 12, 2003
3:40:07 PM EDT
Viewed (by coders): 197 times
Deadline: 5/14/2003
TIME EXPIRED
Phase:
Cancelled
Max Accepted Bid: Bidding is closed
Project Type: Question or Beginner / Newbie Assistance
Bidding Type: Open Auction
Categories: Language Specific, Java
Enter chat room for this bid request
(0 active users at May 22, 2003 5:55:00 PM EDT)

Description:
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]
c4.Read (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.
s1.Wait for a client connection on this socket
s2.When 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)

Must be 100% finished and received by buyer on:
May 14, 2003 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.


Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation please help out the site and report it. Thanks for your help.
 
Bidding/Comments:
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
 
Date   Coder Rating  


No bidding allowed, because this bid request was cancelled.

Cancelled Date: 5/19/2003 3:41:04 PM
Cancelled Reason: Cancelled by automated program due to time expiration

Quick Search
 

 Advanced Search
Newest Open Work
Latest News

 
Credentials


 

 
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
 

Rent A Coder Top Coders.


Anuj Gakhar
Rated a 9.98 on 92 jobs 
Securenext
Rated a 9.98 on 98 jobs 
Codman
Rated a 9.97 on 144 jobs 
Buddies
Rated a 9.82 on 76 jobs 
Andrei Remenchuk
Rated a 10 on 12 jobs 
Michael Sharp
Rated a 9.97 on 178 jobs 
RNA
Rated a 9.92 on 37 jobs 
markesh
Rated a 10 on 22 jobs 
teleCODERS
Rated a 9.93 on 67 jobs 
hernest
Rated a 10 on 109 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
 
Other
Rent A Coder is PayPal verified through its parent company, Exhedra Solutions, Inc.

Created in partnership with:

 


Affiliate Sites



Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright © 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.