SocketConnector class

Constructors

SocketConnector(Socket? _socketB, Socket? _socketA, int _connectionsB, int _connectionsA, ServerSocket? _serverSocketB, ServerSocket? _serverSocketA)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
closed() Future<bool>
returns true if sockets are closed/null wait 30 seconds to ensure network has a chance
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
receiverPort() int?
Returns the TCP port of the receiver socket
senderPort() int?
Returns the TCP port number of the sender socket
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

serverToServer({InternetAddress? serverAddressA, InternetAddress? serverAddressB, int? serverPortA, int? serverPortB, bool? verbose}) Future<SocketConnector>
Binds two Server sockets on specified Internet Addresses. Ports on which to listen can be given but if not given a spare port will be found by the OS. Finally relays data between sockets and optionaly displays contents using the verbose flag
socketToServer({required InternetAddress socketAddress, required int socketPort, InternetAddress? serverAddress, int? receiverPort, bool? verbose}) Future<SocketConnector>
Binds a Server socket on a specified InternetAddress Port on which to listen can be specified but if not given a spare port will be found by the OS. Then opens socket to specified Internet Address and port Finally relays data between sockets and optionaly displays contents using the verbose flag
socketToSocket({required InternetAddress socketAddressA, required int socketPortA, required InternetAddress socketAddressB, required int socketPortB, bool? verbose}) Future<SocketConnector>
Opens sockets specified Internet Addresses and ports Then relays data between sockets and optionaly displays contents using the verbose flag