Re: Port binding under linux in ASM



On Apr 20, 1:52 am, Frank Kotler <fbkot...@xxxxxxxxxxx> wrote:
But at the "sys_call" level, there's really only one - "mov eax, 102"
- ebx takes the "command", or "subfunction", "SYS_SOCKET",
"SYS_BIND", "SYS_CONNECT", etc. and ecx takes a pointer to
a "parameter structure". The meanings of the parameters differs
depending on which "subfunction" we're doing, but (for some reason)
we recycle the same "structure".

Righto - and there's a dearth of information available on the web
concerning how to make use of the socketcall function at the assembly
level. If any of you know of a treasure trove of ASM-level
documentation on sockets programming, I'd love to get my grubby mitts
on it.

(that would be Nasm syntax... just "define" for Fasm??? What assembler
are you using, TC&S?)

I'm using NASM.
.