get_socket


Description:

[ Version ( deprecated = true ) ]
public unowned Socket get_socket ()

Warning: get_socket is deprecated.

Retrieves the Socket that this is associated with.

Note:

use get_gsocket, which returns a Socket.

If you are using this method to observe when multiple requests are made on the same persistent HTTP connection (eg, as the ntlm-test test program does), you will need to pay attention to socket destruction as well (either by using weak references, or by connecting to the disconnected signal), so that you do not get fooled when the allocator reuses the memory address of a previously-destroyed socket to represent a new socket.

Parameters:

this

a ClientContext

Returns:

the Socket that this is associated with.