writePlainContentTo

open fun <T> writePlainContentTo(port: Int, content: T)

Method to write a plain content message to send with the socket request

Parameters

content

: content message to send

port

: port of the server socket where this request must be accepted and routed

Throws

when some errors have been occurred


open fun <T> writePlainContentTo(host: String, content: T)

Method to write a plain content message to send with the socket request

Parameters

host

: host of the server socket where this request must be accepted and routed

content

: content message to send

Throws

when some errors have been occurred


open fun <T> writePlainContentTo(host: String, port: Int, content: T)

Method to write a plain content message to send with the socket request

Parameters

host

: host of the server socket where this request must be accepted and routed

content

: content message to send

port

: port of the server socket where this request must be accepted and routed

Throws

when some errors have been occurred


open fun <T> writePlainContentTo(targetSocket: Socket, content: T)

Method to write a plain content message to send with the socket request

Parameters

targetSocket

: target socket to use to send the content message

content

: content message to send

Throws

when some errors have been occurred