Home > database >  Under the original concept socket programming and win2008, Windows 7 no, can under the XP
Under the original concept socket programming and win2008, Windows 7 no, can under the XP

Time:09-18

The original concept of the program,

WIN2008R2 again when running on

Rc=accept (ius_socket SocketNumber, sa, sizeof_sockaddr)

Back to the 65535

The reference of which is

//bind, listen and accept the request function
The FUNCTION Long bind (Long s, REF s_sockaddr name, Long namelen) LIBRARY "wsock32. DLL
"The FUNCTION Long listen (Long s, Long backlog) LIBRARY "wsock32. DLL
"The FUNCTION Long accept (Long s, REF s_sockaddr addr, REF Int addrlen) LIBRARY "wsock32. DLL
"The FUNCTION Long WSACancelBlockingCall () LIBRARY "wsock32. DLL
"
This repository function

XP computer run time, again, there is no problem

Rc=accept (ius_socket SocketNumber, sa, sizeof_sockaddr)

Can return values

CodePudding user response:

refer to the original poster bedsb response:
original concept do procedure,

WIN2008R2 again when running on

Rc=accept (ius_socket SocketNumber, sa, sizeof_sockaddr)

Back to the 65535

The reference of which is

//bind, listen and accept the request function
The FUNCTION Long bind (Long s, REF s_sockaddr name, Long namelen) LIBRARY "wsock32. DLL
"The FUNCTION Long listen (Long s, Long backlog) LIBRARY "wsock32. DLL
"The FUNCTION Long accept (Long s, REF s_sockaddr addr, REF Int addrlen) LIBRARY "wsock32. DLL
"The FUNCTION Long WSACancelBlockingCall () LIBRARY "wsock32. DLL
"
This repository function

XP computer run time, again, there is no problem

Rc=accept (ius_socket SocketNumber, sa, sizeof_sockaddr)

Can return values


Is likely to appear this kind of circumstance, suggest you use winsock to implement

Reference:
http://hi.baidu.com/slamdunky/item/f491ef1d235b25fe756a84f9

CodePudding user response:

Ws2_32. DLL

CodePudding user response:

refer to the original poster bedsb response:
original concept do procedure,

WIN2008R2 again when running on

Rc=accept (ius_socket SocketNumber, sa, sizeof_sockaddr)

Back to the 65535

The reference of which is

//bind, listen and accept the request function
The FUNCTION Long bind (Long s, REF s_sockaddr name, Long namelen) LIBRARY "wsock32. DLL
"The FUNCTION Long listen (Long s, Long backlog) LIBRARY "wsock32. DLL
"The FUNCTION Long accept (Long s, REF s_sockaddr addr, REF Int addrlen) LIBRARY "wsock32. DLL
"The FUNCTION Long WSACancelBlockingCall () LIBRARY "wsock32. DLL
"
This repository function

XP computer run time, again, there is no problem

Rc=accept (ius_socket SocketNumber, sa, sizeof_sockaddr)

Can return values


Try using winsock. PBL?
  • Related