Boris
Boris

Reputation: 1467

Porting linux socket application to windows usins MsDev

Is there openly available headers which can be used to compile linux socket application (using socket/udp/ip headers). they should define structures like sa_family_t,in_port_t

Mandatory is to use Msdev and not cygwin/gcc or mingw compiler.

Upvotes: 0

Views: 1362

Answers (2)

dhorn
dhorn

Reputation: 685

As far as I know, there is no easy way to do this. Windows provides an entirely different set of system calls than linux, as well as a different method for handling sockets.

Upvotes: 0

Rob Pelletier
Rob Pelletier

Reputation: 327

You can use the structures and functions declared in winsock.h or winsock2.h from the standard Win32 API. There are some differences from the standard BSD implementation, but for a simple socket-based application the port should be relatively straightforward.

Upvotes: 2

Related Questions