大家帮忙看看这个代码应该怎么写?
帮忙看下这段代码在vb下怎么写?typedef struct sockaddr_ipx
{
short sa_family;
char sa_netnum[4];
char sa_nodenum[6];
unsigned short sa_socket;
} SOCKADDR_IPX,*PSOCKADDR_IPX,FAR *LPSOCKADDR_IPX;
NET_SOCKET new_socket;
struct sockaddr_ipx addr;
if (bind(new_socket, (struct sockaddr *) &addr, sizeof(addr))==NET_INVALID_SOCKET) {
Con_Printf(S_COLOR_YELLOW "WARNING: IPX_Socket: bind: %s\n", Net_GetErrorString());
closesocket(new_socket);
return(NET_INVALID_SOCKET);
最重要就是bind后面第二个参数,我在vb中应该怎么设?