Re: Wireless adapter for new computer re TUNTAP

"Ivan Warren [email protected] [hercules-390]" <[email protected]>
Newsgroups gmane.comp.emulators.hercules390.general
Message-ID <[email protected]>
Le 6/18/2019 à 7:03 AM, ''Fish' (David B. Trout)' 
[email protected] [hercules-390] a écrit :
> Mike Schwab wrote:
>
> <snip; bunch of URLs>
>
> We know what it is.  What we're looking for is some sample code.

Yep, That's the issue... There is little to no documentation about how 
to talk to OpenVPN's tun/tap devices (because it was designed to be for 
internal's OpenVPN use only) - but there are many project that now use 
the driver (so the OpenVPN people tend to have a fixed API for the 
tun/tap driver).

Basically there are some big differences from the linux kind :

The naming is completly different.. You basically need to scan the 
registry to find the UUID of the interface you want to use.

You can't use open().. You have to use te Win32 API to access it.

read() and write() won't work.. You need to use the Win32 versions and 
possibly a message hook because select() won't work there.

Still looking for the C sample I came accross some time ago...

--Ivan




[Non-text portions of this message have been removed]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.