1.89 <GTcpWrapperConnection>

Class: <GTcpWrapperConnection>

It derives from <GTcpConnection>.

A <GTcpWrapperConnection> can be used to wrap a <GIOStream> that is based on a <GSocket>, but which is not actually a <GSocketConnection>. This is used by <GSocketClient> so that it can always return a <GSocketConnection>, even when the connection it has actually created is not directly a <GSocketConnection>.

Fields

parent-instance
priv

Properties

Property: tcp-wrapper-connection:base-io-stream self

The wrapped <GIOStream>.

Its value is a <GIOStream>, or #f.

It can only be set when the object is made, with #:base-io-stream.

Procedures

Method: tcp-wrapper-connection:get-base-io-stream self ⇒ %return
Method: get-base-io-stream self ⇒ %return

Gets self’s base <GIOStream>

self

Passed: a <GTcpWrapperConnection>.

a <GTcpWrapperConnection>

%return

Returned: a <GIOStream>.

self’s base <GIOStream>

Procedure: tcp-wrapper-connection:new base-io-stream socket ⇒ %return

Wraps base-io-stream and socket together as a <GSocketConnection>.

base-io-stream

Passed: a <GIOStream>.

the <GIOStream> to wrap

socket

Passed: a <GSocket>.

the <GSocket> associated with base-io-stream

%return

Returned: a <GSocketConnection>.

the new <GSocketConnection>.