Back to Pocketbase

Interface RawConn

static/jsvm/interfaces/syscall.RawConn.html

latest1.7 KB
Original Source

Interface RawConn

A RawConn is a raw network connection.

Hierarchy

  • RawConn

Indexable

Index

Methods

controlreadwrite

Methods

control

  • control(f): void

Control invokes f on the underlying connection's file descriptor or handle. The file descriptor fd is guaranteed to remain valid while f executes but not after f returns.

Parameters

f: ((fd) => void)
- 
  - (fd): void
  - 

Parameters

    - 
fd: number

Returns void

Returns void

read

  • read(f): void

Read invokes f on the underlying connection's file descriptor or handle; f is expected to try to read from the file descriptor. If f returns true, Read returns. Otherwise Read blocks waiting for the connection to be ready for reading and tries again repeatedly. The file descriptor is guaranteed to remain valid while f executes but not after f returns.

Parameters

f: ((fd) => boolean)
- 
  - (fd): boolean
  - 

Parameters

    - 
fd: number

Returns boolean

Returns void

write

  • write(f): void

Write is like Read but for writing.

Parameters

f: ((fd) => boolean)
- 
  - (fd): boolean
  - 

Parameters

    - 
fd: number

Returns boolean

Returns void

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc