Solved

C++ sys.h and net.h header files.

Posted on 2004-09-12
9
363 Views
Last Modified: 2012-06-27
Dear Expert,

I want to develop applications which depend on networking. I have got books in which sample networking applications uses net.h and sys.h C++ header files. In my C++ these files are not there. So, I am unable to compile those programs and learn network programming.

Kindly help me in getting these header files. If download of them is available on net then please give the URL.

Thank You.

VM.
0
Comment
Question by:vikrant10
  • 4
  • 3
9 Comments
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
Hi vikrant10,

which platform and compiler are you using ?

Sunnycoder
0
 

Author Comment

by:vikrant10
Comment Utility
Dear sunnycodeer,

I am using windows platform. Compiler is Turbo C++(don't remember actual version).

VM.
0
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
Turbo C++ is for DOS ... Network programming in DOS may not be pretty ...

I suggest that you get a newer compiler ... cygwin + windows port of gcc is one good option ... another will be something like devshed C++ or VC++
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:vikrant10
Comment Utility
Dear sunnycoder,

I have got Visual Studio 6. Visual C++ is installed with it. But it doesn't have those header files. Can u give me the URL of any download site.

Help me.


VM.
0
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
vikrant10,

For VC++, you need to include winsock.h file
check these links
http://tangentsoft.net/wskfaq/
http://www.hal-pc.org/~johnnie2/winsock.html

Sunnycoder
0
 

Author Comment

by:vikrant10
Comment Utility
Dear sunnycoder,

As u have suggested, I have included winsock.h file in my C coding in Visual C++. The program has not compiled with zero errors. But on building it is displaying linking errors. For eg. on lines containing gethostbyname, shutdown etc. What might be problem ?

Please help.

VM.
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 125 total points
Comment Utility
make sure that winsock.dll is in the linker's path
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

744 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

17 Experts available now in Live!

Get 1:1 Help Now