Thread: Forwarding connection

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    22

    Forwarding connection

    Hello.

    I'm using libcurl on my project, but i need some help. I want to forward connect send, recv and other functions to their WSA representative (connect -> WSAconnect, send -> WSAsend, ... )

    There is any easy way to make a macro or overlay function to make this?

    I really need this help.

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Find+Replace?
    But define a function like
    Code:
    newConnect(...)
    {
         WSAConnect(...);
    }
    So find+replace 'connect(' with 'newConnect(' for example and in the newConnect() function translate the parameters of connect() to WSAConnect() and you are done

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. multiple forks in one client connection (ftpclient)
    By Dynamo in forum Networking/Device Communication
    Replies: 5
    Last Post: 01-16-2011, 12:41 PM
  2. Replies: 6
    Last Post: 12-19-2008, 05:49 PM
  3. passing a connection to another process.
    By Kinasz in forum Networking/Device Communication
    Replies: 3
    Last Post: 10-09-2004, 05:34 PM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  5. broadband connection problem
    By Shadow in forum Tech Board
    Replies: 9
    Last Post: 03-28-2003, 05:27 PM