Remove chunk size test code, add connect command test code
This commit is contained in:
parent
d5d5e71270
commit
58d12652e5
1 changed files with 4 additions and 11 deletions
|
@ -5,19 +5,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func NegotiateConnect(chnk_wrp_ptr *ChunkWrapper) (bool) {
|
func NegotiateConnect(chnk_wrp_ptr *ChunkWrapper) (bool) {
|
||||||
fmt.Println(chnk_wrp_ptr.params.peer_chunk_size)
|
|
||||||
if err := chnk_wrp_ptr.ReadPeerChunkSize(); err != nil {
|
if err := chnk_wrp_ptr.ReadPeerChunkSize(); err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
fmt.Println(chnk_wrp_ptr.params.peer_chunk_size)
|
if err := chnk_wrp_ptr.ReadConnectCommand(); err != nil {
|
||||||
for {
|
return false
|
||||||
full_msg_ptr, err := chnk_wrp_ptr.ReadChunk()
|
|
||||||
if err != nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if full_msg_ptr == nil {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
fmt.Println(*full_msg_ptr)
|
|
||||||
}
|
}
|
||||||
|
fmt.Println(chnk_wrp_ptr.params)
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue