Afficher un message
Vieux 18/10/2007, 23h11   #3
Peter Pichler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sendto(msg) points to uninitialised byte(s)

BlueJ wrote:
> My program is to send data using socket.. but I got the error message:
> "sendto(msg) points to uninitialised byte(s) " This is my source code


BlueJ,
I wanted to you, but could not find a single instance of msg in
your code snippet, let alone sendto(msg).

> 1. key_list = emalloc(BUFSIZE - sizeof(Key) - sizeof(byte) -
> sizeof(int));
> bzero(key_list, sizeof(*key_list));

<snip>

What's emalloc and bzero? What's key_list, Key, byte? Your code snippet
is incomplete at best. If you want , copy and paste a reduced source
that exhibits your problem but is still compilable, or at least contains
enough information for a human reader to understand.

Peter
  Réponse avec citation
 
Page generated in 0,04729 seconds with 9 queries