Documentation
¶
Index ¶
- Variables
- func CheckOnPck(packet *socket.Packet, algo string, buffer map[int][]byte, filename string) int
- func CreateClientSocket(localAddr *net.UDPAddr) *net.UDPConn
- func ReceiveAckFromServer(buf []byte)
- func ReceiveFromServer(conn *net.UDPConn, buf []byte, addr *net.UDPAddr, algo string)
- func SendToServer(conn *net.UDPConn, servAddr, localAddr *net.UDPAddr, window int, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //AckFileCheck is channel on receiving ack on file request AckFileCheck = make(chan uint32) )
Functions ¶
func CheckOnPck ¶
CheckOnPck is checking if the packet is the last packet or not
func CreateClientSocket ¶
CreateClientSocket in client-side
func ReceiveFromServer ¶
ReceiveFromServer any ack packet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.