socket call
- From: "KC" <KC@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 1 Aug 2005 14:12:04 -0700
I try to build a rtp DLL. The rtp_init() will call into udp_init4(), which
will call the folloiwng:
s->fd = socket(AF_INET, SOCK_DGRAM, 0);
But the s->fd returned back a negtive number. I linked wsock32.lib (from SDK
\lib for XP SP2) for the rtp project.
I am wondering what is going on? Is it because I did not init the socket?
Shold WSAStartup() solve the problem? But I was not allowed to include
winsock2.h.
Kevin c.
.
- Follow-Ups:
- Re: socket call
- From: Arkady Frenkel
- Re: socket call
- References:
- Registry key for CLOSE_WAIT time?
- From: Jeff Fink
- Re: Registry key for CLOSE_WAIT time?
- From: Arkady Frenkel
- Registry key for CLOSE_WAIT time?
- Prev by Date: Re: end of tcp stream .
- Next by Date: Re: Registry key for CLOSE_WAIT time?
- Previous by thread: Re: Registry key for CLOSE_WAIT time?
- Next by thread: Re: socket call
- Index(es):
Relevant Pages
|