VOGONS


First post, by John1985

User metadata
Rank Newbie
Rank
Newbie

Hello, everyone.
Now I am going to develop some simple applications to get html pages from web server, ping to other hosts using C.
These applications must be run in FreeDos and Dosbox.
Can anyone let me know which library should be used for Dos network programming?
I know there are Watt32 and MTCP already, but I am so confused about them now.
I have an old watt32 lib and include header files for C programming, but they make tons of errors when compiling.
And I couldn't find the latest dev package about watt32 or MTCP.

Reply 3 of 7, by _Rob

User metadata
Rank Member
Rank
Member

Standard dosbox does not have network adapter emulation, so you may be interested in a fork that does. Here is a wiki on how to set things up with DOSBox-X, including mtcp.
https://dosbox-x.com/wiki/Guide%3ASetting-up- … OSBox%E2%80%90X

Reply 5 of 7, by mbbrutman

User metadata
Rank Member
Rank
Member

I'm not quite sure what the confusion is. The mTCP source code includes a 26 page PDF doc with information for developers, including notes on what compiler to use. Have you looked at it?

What is your question?

Reply 6 of 7, by mbbrutman

User metadata
Rank Member
Rank
Member
Nikita Afanasev wrote on 2021-09-01, 18:51:

MTCP is a collection of applications such as ping, dhcp, htget and so on.
I can't understand how you are going to use them for c coding.

It's more than just the compiled programs. The mTCP source code also provides a framework for building your own applications using the mTCP TCP/IP stack and utilities.