Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:io
  3. RawServerSocket class
RawServerSocket
description

RawServerSocket classabstractinterface

A listening socket.

ARawServerSocket and provides a stream of low-levelRawSocket objects,one for each connection made to the listening socket.

SeeRawSocket for more information.

Implemented types

Properties

addressInternetAddress
The address used by this socket.
no setter
firstFuture<RawSocket>
The first element of this stream.
no setterinherited
hashCodeint
The hash code for this object.
no setterinherited
isBroadcastbool
Whether this stream is a broadcast stream.
no setterinherited
isEmptyFuture<bool>
Whether this stream contains any elements.
no setterinherited
lastFuture<RawSocket>
The last element of this stream.
no setterinherited
lengthFuture<int>
The number of elements in this stream.
no setterinherited
portint
The port used by this socket.
no setter
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited
singleFuture<RawSocket>
The single element of this stream.
no setterinherited

Methods

any(booltest(RawSocketelement))Future<bool>
Checks whethertest accepts any element provided by this stream.
inherited
asBroadcastStream({voidonListen(StreamSubscription<RawSocket>subscription)?,voidonCancel(StreamSubscription<RawSocket>subscription)?})Stream<RawSocket>
Returns a multi-subscription stream that produces the same events as this.
inherited
asyncExpand<E>(Stream<E>?convert(RawSocketevent))Stream<E>
Transforms each element into a sequence of asynchronous events.
inherited
asyncMap<E>(FutureOr<E>convert(RawSocketevent))Stream<E>
Creates a new stream with each data event of this stream asynchronouslymapped to a new event.
inherited
cast<R>()Stream<R>
Adapt this stream to be aStream<R>.
inherited
close()Future<RawServerSocket>
Closes the socket.
contains(Object?needle)Future<bool>
Returns whetherneedle occurs in the elements provided by this stream.
inherited
distinct([boolequals(RawSocketprevious,RawSocketnext)?])Stream<RawSocket>
Skips data events if they are equal to the previous data event.
inherited
drain<E>([E?futureValue])Future<E>
Discards all data on this stream, but signals when it is done or an erroroccurred.
inherited
elementAt(intindex)Future<RawSocket>
Returns the value of theindexth data event of this stream.
inherited
every(booltest(RawSocketelement))Future<bool>
Checks whethertest accepts all elements provided by this stream.
inherited
expand<S>(Iterable<S>convert(RawSocketelement))Stream<S>
Transforms each element of this stream into a sequence of elements.
inherited
firstWhere(booltest(RawSocketelement), {RawSocketorElse()?})Future<RawSocket>
Finds the first element of this stream matchingtest.
inherited
fold<S>(SinitialValue,Scombine(Sprevious,RawSocketelement))Future<S>
Combines a sequence of values by repeatedly applyingcombine.
inherited
forEach(voidaction(RawSocketelement))Future<void>
Executesaction on each element of this stream.
inherited
handleError(FunctiononError, {booltest(dynamicerror)?})Stream<RawSocket>
Creates a wrapper Stream that intercepts some errors from this stream.
inherited
join([Stringseparator =""])Future<String>
Combines the string representation of elements into a single string.
inherited
lastWhere(booltest(RawSocketelement), {RawSocketorElse()?})Future<RawSocket>
Finds the last element in this stream matchingtest.
inherited
listen(voidonData(RawSocketevent)?, {Function?onError,voidonDone()?,bool?cancelOnError})StreamSubscription<RawSocket>
Adds a subscription to this stream.
inherited
map<S>(Sconvert(RawSocketevent))Stream<S>
Transforms each element of this stream into a new stream event.
inherited
noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pipe(StreamConsumer<RawSocket>streamConsumer)Future
Pipes the events of this stream intostreamConsumer.
inherited
reduce(RawSocketcombine(RawSocketprevious,RawSocketelement))Future<RawSocket>
Combines a sequence of values by repeatedly applyingcombine.
inherited
singleWhere(booltest(RawSocketelement), {RawSocketorElse()?})Future<RawSocket>
Finds the single element in this stream matchingtest.
inherited
skip(intcount)Stream<RawSocket>
Skips the firstcount data events from this stream.
inherited
skipWhile(booltest(RawSocketelement))Stream<RawSocket>
Skip data events from this stream while they are matched bytest.
inherited
take(intcount)Stream<RawSocket>
Provides at most the firstcount data events of this stream.
inherited
takeWhile(booltest(RawSocketelement))Stream<RawSocket>
Forwards data events whiletest is successful.
inherited
timeout(DurationtimeLimit, {voidonTimeout(EventSink<RawSocket>sink)?})Stream<RawSocket>
Creates a new stream with the same events as this stream.
inherited
toList()Future<List<RawSocket>>
Collects all elements of this stream in aList.
inherited
toSet()Future<Set<RawSocket>>
Collects the data of this stream in aSet.
inherited
toString()String
A string representation of this object.
inherited
transform<S>(StreamTransformer<RawSocket,S>streamTransformer)Stream<S>
AppliesstreamTransformer to this stream.
inherited
where(booltest(RawSocketevent))Stream<RawSocket>
Creates a new stream from this stream that discards some elements.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited

Static Methods

bind(dynamicaddress,intport, {intbacklog =0,boolv6Only =false,boolshared =false})Future<RawServerSocket>
Listens on a given address and port.
  1. Dart
  2. dart:io
  3. RawServerSocket class
dart:io library

[8]ページ先頭

©2009-2025 Movatter.jp