freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "gik" <liauwsiauwlong AT hotmail.com>
- To: freetds AT franklin.oit.unc.edu
- Subject: Re: local ip address
- Date: Mon, 6 May 2002 04:29:17 -0400
Sorry, My English not well..
Yeah mean that...
Cause I don't know the konsep well , what I know is :
SqlServer when "exec sp_who2" can get Local Physical Address Client ,
I wondering if SqlServer can get ip Address Client than Client mustbe
request it. When I read reference dpproc->tds_socket if there any
property that alias name to IP Address or Physical Address.
thx before !
> 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?=20
-
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.