Solved

UNIX NETWORK PROGRAMMING

Posted on 1999-01-06
7
233 Views
Last Modified: 2013-12-23
This question is directed to davidwilliams! I have just viewed a solution to boosta's question about a daytime request service on a remote server. How can I execute this program! I am using Sun Operating system 5.5(Solaris 2.5). What are its typical arguments? How should I compile it and using what? Will gcc compile it?
0
Comment
Question by:galeboe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 4

Expert Comment

by:davidmwilliams
ID: 1582846
Hi there!
  Do you have the Question number for that question?  Was it the daytime client program I provided for him?  If so, you certainly can use gcc - you should just need to add -lnsl -lsocket on the compile line
  e.g.   gcc -o daytime daytime.c -lnsl -lsocket

  Then, if you just run the program it tells you the parameters it expects.  I think it was just the hostname to connect to, because the program uses an API call to retrieve the port number for the daytime service.
  Let me know how you get on!
0
 
LVL 4

Expert Comment

by:davidmwilliams
ID: 1582847
 Ok, I've just looked back through the questions and if the one you're referring to is
  http://www.experts-exchange.com/Q.10109566
then yes, you can call the program presented by passing in the hostname you wish to connect to, and then optionally you can specify a port as well, if you wish.
  Hope it all goes well for you ...
0
 
LVL 4

Accepted Solution

by:
davidmwilliams earned 40 total points
ID: 1582848
Do I get the points now?
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 

Author Comment

by:galeboe
ID: 1582849
I had tried to give you points earlier but these machines could not budge! There you are and an extra 10 for your patience! Thanx a lot!

Galeboe:
<galeboem@hotmail.com>
0
 
LVL 4

Expert Comment

by:davidmwilliams
ID: 1582850
Why, thank you very much !
I hope the program goes well for you ! :)
0
 

Author Comment

by:galeboe
ID: 1582851
davidwilliams, did you actually get the 40 points I intended to give you? On my computer it shows that the question has beeen graded with only 4 points! Do you know what could be wrong?
0
 
LVL 4

Expert Comment

by:davidmwilliams
ID: 1582852
 I certainly did get the points - many thanks !
  The way Experts-Exchange works is that a question that has been answered can be 'bought' for 10% of the original points awarded.  So, I did get your 40 points, and now the question and answer can be viewed by others at a cost of 4 points to them.
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month8 days, 6 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question