-//// Agree agrees to the server agreement and sends user info, completing the login sequence
-//func (c *Client) Agree() {
-// c.Send(
-// NewTransaction(
-// tranAgreed, 3,
-// []Field{
-// NewField(fieldUserName, []byte("test")),
-// NewField(fieldUserIconID, *c.Icon),
-// NewField(fieldUserFlags, []byte{0x00, 0x00}),
-// },
-// ),
-// )
-// //
-// //// Block until we receive the agreement reply from the server
-// //_ = c.WaitForTransaction(tranAgreed)
-//}
-
-//func (c *Client) WaitForTransaction(id uint16) Transaction {
-// var trans Transaction
-// for {
-// buf := make([]byte, 1400)
-// readLen, err := c.Connection.Read(buf)
-// if err != nil {
-// panic(err)
-// }
-//
-// transactions := ReadTransactions(buf[:readLen])
-// tran, err := FindTransactions(id, transactions)
-// if err == nil {
-// fmt.Println("returning")
-// return tran
-// }
-// }
-//
-// return trans
-//}
-
-//func (c *Client) Read() error {
-// // Main loop where we wait for and take action on client requests
-// for {
-// buf := make([]byte, 1400)
-// readLen, err := c.Connection.Read(buf)
-// if err != nil {
-// panic(err)
-// }
-// transactions, _, _ := readTransactions(buf[:readLen])
-//
-// for _, t := range transactions {
-// c.HandleTransaction(&t)
-// }
-// }
-//
-// return nil
-//}
-