[Ns-developers] [ns3] a synchronous socket/posix API
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Fri Apr 4 15:47:58 PDT 2008
On Fri, 2008-04-04 at 23:38 +0100, Gustavo Carneiro wrote:
> I see a file named fiber-context-sysv.c, and this makes me wonder, how
> portable is this code? Will it also work in non-unix platforms? Can
No, it will not work on non-unix platforms. win32 has an equivalent
functionality though and, I was told that these things are named
"fibers" there: http://msdn2.microsoft.com/en-us/library/ms682661.aspx
And, no, I did not even try to verify that these would be usable to
re-implement the fiber-context.h header on win32 and left this as an
exercise to the reader :)
> you explain roughly how it works, without getting into much detail?
I am sure that the following will explain this much better than I would:
man makecontext
man swapcontext
regards,
Mathieu
More information about the Ns-developers
mailing list