能力值:
( LV4,RANK:50 )
|
-
-
2 楼
invoke socket, PF_INET, SOCK_STREAM, IPPROTO_TCP
mov dwSock, eax
...
bind
listen
...
invoke accept, dwSock, 0, 0
|
能力值:
( LV8,RANK:130 )
|
-
-
3 楼
代码太少了,看不出问题所在。这是我以前写的
mov edx,lpSocketQueue
push [edx + eax * 4]
call WSAEnumNetworkEvents
cmp eax,SOCKET_ERROR
je SockError
test NetworkEvents.lNetworkEvents,FD_ACCEPT
jz EnumReadEvent
or NetworkEvents.iErrorCode[FD_ACCEPT_BIT * SIZEOF DWORD],0
jnz FailedToAcceptConnection
invoke accept,hGlobalListenSocket,ADDR remoteaddr,ADDR raddrlen
cmp eax,INVALID_SOCKET
mov [hTempSocket],eax
je FailedToAcceptConnection
|
能力值:
( LV8,RANK:130 )
|
-
-
4 楼
知道了,你那个accept的第二个参数必须是一个指向INT的指针,不是sizeof @stSin
|
|
|