Thread: sys/socket.h send causing core

  1. #1
    Registered User
    Join Date
    Oct 2002

    sys/socket.h send causing core

    This may be an impossible question to answer, but I'm trying to make a plugin do a tcp socket connection. Because it's a plugin, I'm using another company's API (the plugin is for Side Effects Software's Houdini). I've made standalone versions of the socket creating portion of the code which work fine, but when I write it in with the plugin code, it dies when it executes this line (no core is created):

    std::send(sockDesc, buffer, bufferLen, 0);
    ... and when I say "it dies" - I mean it just quits the entire thing, no core, no exeption catching, nothing (Houdini usually catches seg faults and let's you know about them before it exits). The program & everything in it just quits.

    Anyone have a suggestion as to what I might do to get around this? Is there another way of making the connection? Any pointers on things to look for when it comes to sockets and what I might be linking with when I compile the plugin?

    I'm really green when it comes to sockets, so, like I said, this question may be impossible to answer... I'm just sick of banging my head on this.

    edit: here's a little more info:

    sockDesc = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)
    buffer is a char*
    bufferLen is correct

    I'm trying to send a message from the plugin (which I'm calling the client) to a "server" - it will eventually be a licensing scheme so a company will have a license server and individual computers on their network will check licenses out from that server.
    Last edited by BrianK; 10-02-2002 at 09:02 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. tuncated uint8_t
    By Coens in forum C Programming
    Replies: 14
    Last Post: 11-24-2008, 07:57 AM
  2. nonblocking send need help
    By sleith in forum Networking/Device Communication
    Replies: 2
    Last Post: 03-27-2008, 10:51 PM
  3. sending n no of char data uning send() function,
    By thebrighter in forum Windows Programming
    Replies: 1
    Last Post: 08-22-2007, 12:26 PM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  5. LISP (DrScheme) any one?
    By Jeremy G in forum A Brief History of
    Replies: 5
    Last Post: 03-31-2004, 12:52 PM