writeContentTo

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

Method to write a 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> writeContentTo(host: String, content: T)

Method to write a 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> writeContentTo(host: String, port: Int, content: T)

Method to write a 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> writeContentTo(targetSocket: Socket, content: T)

Method to write a 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