Documentation
¶
Overview ¶
transfer.go specifies the necessary messaging needed for the transfer protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgType ¶
type MsgType int
MsgType specifies the message type for the messages in the transfer protocol.
const ( TransferError MsgType = iota // An error has occured in transferProtocol ReceiverHandshake // Receiver exchange its IP via the rendezvous server to the sender SenderHandshake // Sender exchanges IP, port and payload size to the receiver via the rendezvous server ReceiverDirectCommunication SenderDirectAck // Sender ACKs the request for direct communication ReceiverRelayCommunication // Receiver has tried to probe the sender but cannot find it on the subnet, relay communication will be used SenderRelayAck // Sender ACKs the request for relay communication ReceiverRequestPayload // Receiver request the payload from the sender SenderPayloadSent // Sender announces that the entire file has been transfered ReceiverPayloadAck // Receiver ACKs that is has received the payload SenderClosing // Sender announces that it is closing the connection ReceiverClosingAck // Receiver ACKs the closing of the connection )
Click to show internal directories.
Click to hide internal directories.