BSD Problems

Moderator
Posts: 613
Joined: 2004.09
Post: #1
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
Code:
#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;

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #2
Try #include <sys/time.h>, maybe?

- Alex Diener
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #3
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

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Post Reply