Re: some problem in UDP programming under linux
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: 26 Feb 2007 20:16:05 -0800
On Feb 26, 6:56 pm, s9327...@xxxxxxxxxxxxxxxx wrote:
I modify
sendto(s, buffer, len, 0, (struct sockaddr *)&addr, addr_len) and
len = recvfrom(s, buffer, sizeof(buffer), 0 (struct sockaddr *)&addr,
&addr_len) bug , but have some new bug
udpclient1.C: In function 'int main()';
udpclient1.C: 37: invaild conversion from 'int*' to 'socklen_t*'
please help me
You want 'addr_len' to be a 'socklen_t', not an 'int'.
DS
.
- References:
- some problem in UDP programming under linux
- From: s9327620
- Re: some problem in UDP programming under linux
- From: Lew Pitcher
- Re: some problem in UDP programming under linux
- From: s9327620
- some problem in UDP programming under linux
- Prev by Date: Re: some problem in UDP programming under linux
- Next by Date: Re: skype optimisation with iptables/tc?
- Previous by thread: Re: some problem in UDP programming under linux
- Index(es):
Relevant Pages
|