The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
C Programming - Hardware Programming nandumishra High Level Programming 3 08-24-2009 04:11 AM
Carreer:Networking Programming in Unix (C programming Language) vibhory2j UNIX for Dummies Questions & Answers 5 09-05-2008 07:57 PM
New To Programming xkayla06 Shell Programming and Scripting 7 06-04-2008 08:40 AM
Unix Systems Programming Vs Unix Programming BCarlson Shell Programming and Scripting 0 05-24-2006 02:34 PM
c programming or unix programming!? moxxx68 High Level Programming 1 03-30-2004 08:53 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-07-2009
magnetpest2k7 magnetpest2k7 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 4
Red face Help with programming

here is the detailed description: Can any one give me the code or guide.

Create a networking application using the socket interface to implement a "computing engine" service over TCP.
following describes the application, session, and presentation layers.

C language program that reads a list of numbers, integer or floating point, separated with newlines, from the client side, and outputs the average of these numbers. Lines that begin with the character | are called substitutions; substitutions should be executed and your program should use the elapsed running time (in seconds) for its calculation.

The server reads all lines, and return the average value of all of these values (include the elapsed running time of some execution)

Here is an example output:
Code:
$ average mercury 2345
     23
    543.2
    -32.1
    |/bin/sleep 2
    -13
    32.43 
     --

Last edited by pludi; 10-07-2009 at 02:20 AM.. Reason: code tags, please...
  #2 (permalink)  
Old 10-07-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,839
What's it needed for? Because it sounds like something straight from a CS class.
  #3 (permalink)  
Old 10-07-2009
magnetpest2k7 magnetpest2k7 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 4
sorry I have just begun to start my network programming and I dont have much knowledge can you please explain in detail.

Thank You
  #4 (permalink)  
Old 10-07-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,839
What should I explain in detail?

You can find a pretty good introduction to network programming here.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0