[603] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Inet Addresses in AF_INET UDP?

daemon@ATHENA.MIT.EDU (Matthias Urlichs)
Mon Jul 3 05:17:58 1995

To: submit-linux-dev-net@ratatosk.yggdrasil.com
From: urlichs@smurf.noris.de (Matthias Urlichs)
Date: 3 Jul 1995 05:53:20 +0200

In linux.dev.net, article <Pine.LNX.3.91.950630074134.582A-100000@fsd.pdc.cdsl.com>,
  Chris Austin <caustin@Direct.CA> writes:
> 
> void recv_net_message(void)
> {
>   int                numbytes, addr_len;
> 
>   numbytes = recvfrom(net_sockfd, message, MAX_NET_MESSAGE, 0, (struct sockaddr *) &remote_address, &addr_len);
>   
It might help if you set addr_len before doing this.

-- 
Nature makes boys and girls lovely to look upon so they can be tolerated
until they acquire some sense.
	-- William Lyon Phelps
-- 
Matthias Urlichs        \ XLink-POP Nürnberg  | EMail: urlichs@smurf.noris.de
Schleiermacherstraße 12  \  Unix+Linux+Mac    | Phone: ...please use email.
90491 Nürnberg (Germany)  \   Consulting+Networking+Programming+etc'ing     42
          PGP: 1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE 
      Click <A HREF="http://smurf.noris.de/~urlichs/finger">here</A>.

home help back first fref pref prev next nref lref last post