func WriteInt32(conn net.Conn, num int32) (int, error) { num_byte := make([]byte, 4) num_byte[0] = byte(num >> 24 & 0xFF) num_byte[1] = byte(num >> 16 & 0xFF) num_byte[2] = byte(num >> 8 & 0xFF) num_byte[3] = byte(num & 0xFF) return WriteByte(conn, num_byte) }