Skip to Content.
Sympa Menu

freetds - Re: local ip address

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: James Cameron <james.cameron AT compaq.com>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: local ip address
  • Date: 03 May 2002 18:42:02 +1000

Perhaps you mean obtaining the IP address of the local side of the TDS
connection to the server?

No, I cannot see anything that has fetched it. FreeTDS would need to
call getsockname() to obtain this information. For you to do it in your
code, you would need to '#include <sys/socket.h>' and call getsockname()
using the socket number being used by FreeTDS.

A TDSSOCKET struct pointer is returned by tds_connect().
tds->s is the socket file descriptor number.

The ctlib, dblib and odbc layers above save this pointer in their own
structures.

dbproc->tds_socket?

--
James Cameron (james.cameron AT compaq.com)

http://quozl.linux.org.au/ (or) http://quozl.netrek.org/

Attachment: signature.asc
Description: This is a digitally signed message part




Archive powered by MHonArc 2.6.24.

Top of Page