flat assembler
Message board for the users of flat assembler.
Index
> Windows > in General about API |
Author |
|
jInuQ 05 Dec 2003, 09:03
There is a tutorial by Iczelion http://spiff.tripnet.se/~iczelion/asmsockguide.html that should give you the gist. It is for masm but that should be to hard to grok.
_________________ jInuQ "Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." - Antoine de Saint Exupery |
|||
05 Dec 2003, 09:03 |
|
HarryTuttle 05 Dec 2003, 13:36
for all ,such lazy like me
Thx to jIunQ the GIST of the converting string to netw_byte_order result->eax ofcoz. Code: .data IPAddress db "206.34.234.23",0 .code invoke inet_addr, addr IPAddress ; convert the IP address into network byte order _________________ Microsoft: brings power of yesterday to computers of today. |
|||
05 Dec 2003, 13:36 |
|
scientica 05 Dec 2003, 14:51
not what you asked for but anyway:
If you got the address in binary (4 bytes (IPv4)), then it easy to shift between big/small endian: Code: mov eax, [ip_address] bswap eax ; if [ip_address] is big end- it's now little end, if it's little end. it's now big endian _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
05 Dec 2003, 14:51 |
|
jInuQ 06 Dec 2003, 10:03
Well thats nifty 8^). Thanks for the quick tip.
_________________ jInuQ "Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." - Antoine de Saint Exupery |
|||
06 Dec 2003, 10:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.