Skip to content

Add ProxySocket for opening remote socket#7

Open
jbellerb wants to merge 1 commit intomainfrom
jae/push-rnplkxmnkmsn
Open

Add ProxySocket for opening remote socket#7
jbellerb wants to merge 1 commit intomainfrom
jae/push-rnplkxmnkmsn

Conversation

@jbellerb
Copy link

The existing proxy functions set up local listeners, but some programs are better served by having access to the original socket.

ProxySocket returns a net.Conn which is piped to the sprite proxy WebSocket. The interface is modelled after net.Dial, and is generic for the type of socket being opened. This makes backwards compatibility easier if we ever add new proxy types (Unix, UDP, etc.)

@jbellerb jbellerb force-pushed the jae/push-rnplkxmnkmsn branch from 22a012e to 6323733 Compare February 2, 2026 21:09
@jbellerb jbellerb force-pushed the jae/push-rnplkxmnkmsn branch from 6323733 to 5cb8712 Compare February 9, 2026 23:05
@jbellerb jbellerb requested review from mrkurt and vaurdan February 9, 2026 23:06
The existing proxy functions set up local listeners, but some programs
are better served by having access to the original socket.

`ProxySocket` returns a `net.Conn` which is piped to the sprite proxy
WebSocket. The interface is modelled after `net.Dial`, and is generic
for the type of socket being opened. This makes backwards compatibility
easier if we ever add new proxy types (Unix, UDP, etc.)
@jbellerb jbellerb force-pushed the jae/push-rnplkxmnkmsn branch from 5cb8712 to 14e6749 Compare February 9, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments