PDA

View Full Version : BSD Problems


kodex
2005.06.07, 02:41 PM
So im on vacation which is why you guys havent seen me around in a few weeks =). And im doing someone a favor and working on a small networking thing for them. Im running into some problems with BSD and since i dont have any of my books or old source im a little lost here, hopefully someone can help me out.

Error im getting is "error storage size of 'timeout' isn't known"

thanks guys! you are really bailing me out here =D

Here is my code in snippets

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>

...
struct fd_set connectionSet;
struct timeval timeout;
int result;

//Set timeout and set values
timeout.tv_sec = 0;
timeout.tv_unsec = 0;

ThemsAllTook
2005.06.07, 04:07 PM
Try #include <sys/time.h>, maybe?

- Alex Diener

kodex
2005.06.08, 12:33 AM
yea that was it, i knew it was going to be something stupid like that, thanks for the help. See you all in 2 weeks