freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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
-
local ip address,
gik, 05/03/2002
- <Possible follow-up(s)>
- Re: local ip address, James Cameron, 05/03/2002
- Re: local ip address, gik, 05/03/2002
- Re: local ip address, James Cameron, 05/03/2002
- Re: local ip address, James Cameron, 05/03/2002
- Re: local ip address, gik, 05/06/2002
- Re: local ip address, James Cameron, 05/07/2002
Archive powered by MHonArc 2.6.24.