hi you!

Im sticking at this little example:


retVal DD 0

[...]

MOV EAX, socket
MOV fdsetvalue.fd_array , EAX
MOV fdsetvalue.fd_count, 1


PUSH OFFSET timevalv
PUSH 0
PUSH 0
PUSH OFFSET fdsetvalue
PUSH retVal
CALL select
OR EAX, EAX
JZ ....
...




what could be wrong???

Greets
Posted on 2003-09-26 11:02:23 by Bubu-Boy
What's the error code WSALastError gives you?

Thomas
Posted on 2003-09-27 07:58:40 by Thomas
Hi, at first ZERO, and after that 10022 and bevore it gets diconnectet.
what can I do???

Did I programmed some socket_addr wrong, or what could that be ?

Greets!
Posted on 2003-09-27 11:16:41 by Bubu-Boy
I thing i have coded something wrong:

PUSH OFFSET timevalv
PUSH 0
PUSH 0
PUSH OFFSET fdsetvalue
PUSH retVal
CALL select

didn't I ?

Greets BBB
Posted on 2003-09-27 11:23:04 by Bubu-Boy
10022 means 'invalid parameter' IIRC, what does your timeout structure look like?

Thomas
Posted on 2003-09-27 14:06:13 by Thomas
thanks for you help...

its look like:


MOV timevalv.tv_sec,1

nothing else....

is that wrong ?

Greets BBB
Posted on 2003-09-27 14:10:25 by Bubu-Boy
Did you set the tv_usec member of that structure?

Thomas
Posted on 2003-09-28 03:06:03 by Thomas
Hi, I don know what you mean, but i declared it as following:



fdsetvalue fd_set <>
timevalv timeval <>


Greets!
Posted on 2003-09-28 03:09:02 by Bubu-Boy