Hello FPC-Pascal,
Friday, May 14, 2010, 12:14:31 AM, you wrote:
JAGdFJ> This is the C# example i found :
JAGdFJ> http://www.varsanofiev.com/inside/TunTest.cs
Also this line is wrong IMHO:
TAP_Device = '.\\Global\\{44F7688F-77FA-43DC-8D8F-9CBA23E01BB0}.tap';
it should be:
TAP_Device = '\\.
Hello,
I have a seemingly simple question which nevertheless is giving me
headaches: I have a main thread which does nothing but [1] execute
CheckSynchronize, then [2] check whether some other things have to be
done as a result of the synchronization (and do those things if
necessary), then go bac
This is the C# example i found :
http://www.varsanofiev.com/inside/TunTest.cs
2010/5/13 Jorge Aldo G. de F. Junior :
> handle still returns -1
>
> 2010/5/13 José Mejuto :
>> Hello FPC-Pascal,
>>
>> Thursday, May 13, 2010, 10:42:37 PM, you wrote:
>>
>> JAGdFJ> Handle := CreateFile(PChar(TA
handle still returns -1
2010/5/13 José Mejuto :
> Hello FPC-Pascal,
>
> Thursday, May 13, 2010, 10:42:37 PM, you wrote:
>
> JAGdFJ> Handle := CreateFile(PChar(TAP_Device), GENERIC_READ Or
> JAGdFJ> GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM Or
> JAGdFJ> FILE_FLAG_OVERLAPPED,
Hello FPC-Pascal,
Thursday, May 13, 2010, 10:42:37 PM, you wrote:
JAGdFJ> Handle := CreateFile(PChar(TAP_Device), GENERIC_READ Or
JAGdFJ> GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM Or
JAGdFJ> FILE_FLAG_OVERLAPPED, 0);
Try using:
Handle:=CreateFileA(PChar(TAP_Device), GENE
TAP-Win32 is the win32 equivalent of linux/unix tun tap devices.
i need to:
- discover installed taps
- set device options (Dont need ip and etc, just the basic ioctls)
- read and write to device (after set up it becomes just a simple file)
i tried this :
Uses Windows, Classes;
Const
TA
On 13 May 2010, at 17:57, Jürgen Hestermann wrote:
> Jonas Maebe schrieb:
> ...
>>> Of course she did! Just look at trends in programming languages (and
>>> styles) of the past. How can you say that nothing will change ever.
>> Please take this sort of discussions to the fpc-other list.
>
> Wha
Jonas Maebe schrieb:
...
Of course she did! Just look at trends in programming languages (and styles) of
the past. How can you say that nothing will change ever.
Please take this sort of discussions to the fpc-other list.
What "sort" of discussion? Is it only me or do you censore other mails
On 13 May 2010, at 17:30, Jürgen Hestermann wrote:
>>> In the first place it is. But if it would be available, the crowd may
>>> change its mind.
>> No, she won't. She never did.
>
> Of course she did! Just look at trends in programming languages (and styles)
> of the past. How can you say that
In the first place it is. But if it would be available, the crowd may
change its mind.
No, she won't. She never did.
Of course she did! Just look at trends in programming languages (and styles) of
the past. How can you say that nothing will change ever.
On Thu, 13 May 2010 18:24:28 +0300
Juha Manninen wrote:
> Programmer count from 0 by nature. That's what separates programmers from
> normal people.
the programmer's naught gene
;-)
Denis
vit esse estrany ☣
spir.wikidot.com
___
Felipe Monteiro de Carvalho wrote:
What does TAP stand for?
see http://en.wikipedia.org/wiki/TUN/TAP for some pointers.
Marc
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jürgen Hestermann wrote:
I personally hate 0-based counting because no
human counts 0, 1, 2 etc.. so why must computers?
Yes. That's my feeling too. Zero-based arrays/lists always generate
trouble because of substracting or adding one in many places. It makes
code much less readable.
Read
Hi!
> Well, we once had a prof who counted from 0. After he had drewn a large
> diagram on the board he wanted to make sure that it was indeed 12 states
> as stated in the caption. So he went: 0, 1, 2, ... , 11. Hmmm... I've
> seem to have missed one. Let's count again: 0, 1, 2 , 11
>
> He r
What does TAP stand for?
--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
In our previous episode, Graeme Geldenhuys said:
>> I personally hate 0-based counting because no
>> human counts 0, 1, 2 etc..
>>
Well, we once had a prof who counted from 0. After he had drewn a large
diagram on the board he wanted to make sure that it was indeed 12 states
as stated in the
Von: "Jürgen Hestermann"
> > it's just easier to follow the crowd
> > than fight them. :-)
>
> In the first place it is. But if it would be available, the crowd may
> change its mind.
No, she won't. She never did.
Vinzent.
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt fre
In our previous episode, Graeme Geldenhuys said:
> At one point fpGUI switched all list type components to be 1-based. This
> caused such a lot of issues that I very quickly switched it back to
> 0-based. Why? Because even though my components were 1-based, the FPC lists
> where 0-based. So I had t
On Thu, 13 May 2010 09:33:12 +0200
Graeme Geldenhuys wrote:
> spir ☣ het geskryf:
> >>> Also, is it possible to set a list's base index to 1 (so that
> >>> last_index=count)?
> >> No. That would break all other existing code.
> >
> > I don't understand. If I set myList.baseIndex := 1, how can it
Anyone knows how to use it from pascal ?
I am even willing to pay for a component that simplifies TAP-win32 use.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I personally hate 0-based counting because no
human counts 0, 1, 2 etc.. so why must computers?
Yes. That's my feeling too. Zero-based arrays/lists always generate trouble
because of substracting or adding one in many places. It makes code much less
readable.
But because 0-based is so
stand
spir ☣ het geskryf:
>>> Also, is it possible to set a list's base index to 1 (so that
>>> last_index=count)?
>> No. That would break all other existing code.
>
> I don't understand. If I set myList.baseIndex := 1, how can it affect
> other people's code? It's a new feature that does not touch exis
22 matches
Mail list logo