Solved

UNIX NETWORK PROGRAMMING

Posted on 1999-01-06
7
226 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
  • 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Join & Write a Comment

Suggested Solutions

Let’s list some of the technologies that enable smooth teleworking. 
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now