Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 Missing Header Files

v1.0 (example)
closed
nobody
5
2002-07-08
2002-02-19
Bruce Carson
No

The sniper program requires the following .h files
that do not exist with Microsoft Visual C++:

#include <libgen.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>

Which compiler was used to create the .EXE? What
needs to be done to support visual C?

Discussion

  • Scott Nicol
    Scott Nicol
    2002-03-16

    Logged In: YES
    user_id=441678

    It was compiled with gcc within cygwin, a unix environment
    that runs on top of windows. see www.cygwin.com for
    details on cygwin.

    It needs to be ported to winsock to be compiled with visual
    C. Not very difficult, but I haven't got around to doing
    it, yet.

     
  • Scott Nicol
    Scott Nicol
    2002-07-08

    • status: open --> closed
     
  • Scott Nicol
    Scott Nicol
    2002-07-08

    Logged In: YES
    user_id=441678

    I tried to convert this to support visual C - it was trickier than I
    thought.

    esniper treats sockets as regular files, and goes as far as
    using fdopen() on them. This is common (and easy) in unix,
    but difficult or impossible in Windows (depending on the
    version).

    The only way to implement it so it would work on all versions
    of windows is to only use socket calls (send/recv), but that
    would require a lot of work.