// File: /workspace/github_cpp_makefile_star2_O1/jianxinzhou[P]Smart/./include/MySocket.h
// Function: MySocket::MySocket(MyConf&)
MySocket(MyConf& conf)
            :conf_(conf)
        {
            std::cout << conf_.mapConf_["my_ip"] << std::endl;
            
            peerfd_ = socket(AF_INET, SOCK_DGRAM, 0);
            if(peerfd_ == -1)
            {
                std::cout <<__DATE__<<" "<<__TIME__ << " "<<__FILE__<<" "<<__LINE__<<": "<<"socket"<<std::endl ;
                exit(-1);
            }
            
            addrLen_ = sizeof(addr_);
            addr_.sin_family = AF_INET;
            addr_.sin_port = htons(atoi(conf_.mapConf_["my_port"].c_str()));
            addr_.sin_addr.s_addr = inet_addr(conf_.mapConf_["my_ip"].c_str());
            if(-1 ==  bind(peerfd_, (struct sockaddr*)&addr_, sizeof(addr_)) )
            {
                std::cout <<__DATE__<<" "<<__TIME__ << " "<<__FILE__<<" "<<__LINE__<<": "<<"bind"<<std::endl ;
                exit(-1);
            }
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, 0x18(%rdi)
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x4e92(%rip), %rsi      # 0x9162
leaq 0x4e90(%rip), %rdx      # 0x9167
leaq -0x38(%rbp), %rdi
callq 0x497a
addq $0x208, %r14            # imm = 0x208
leaq -0x38(%rbp), %rsi
movq %r14, %rdi
callq 0x4728
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x8ccf(%rip), %rdi      # 0xcfd0
callq 0x3310
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x433e
callq 0x3280
movl $0x2, %edi
movl $0x2, %esi
xorl %edx, %edx
callq 0x30b0
movl %eax, (%rbx)
cmpl $-0x1, %eax
je 0x4427
movl $0x10, 0x14(%rbx)
movw $0x2, 0x4(%rbx)
movq 0x18(%rbx), %r14
leaq -0x38(%rbp), %rdi
movq %r15, (%rdi)
leaq 0x4e0b(%rip), %rsi      # 0x9184
leaq 0x4e0b(%rip), %rdx      # 0x918b
callq 0x497a
addq $0x208, %r14            # imm = 0x208
leaq -0x38(%rbp), %rsi
movq %r14, %rdi
callq 0x4728
movq (%rax), %rdi
callq 0x3440
rolw $0x8, %ax
movw %ax, 0x6(%rbx)
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x43b6
callq 0x3280
movq 0x18(%rbx), %r14
leaq -0x38(%rbp), %rdi
movq %r15, (%rdi)
leaq 0x4d9a(%rip), %rsi      # 0x9162
leaq 0x4d98(%rip), %rdx      # 0x9167
callq 0x497a
addq $0x208, %r14            # imm = 0x208
leaq -0x38(%rbp), %rsi
movq %r14, %rdi
callq 0x4728
leaq 0x4(%rbx), %r14
movq (%rax), %rdi
callq 0x32c0
movl %eax, 0x8(%rbx)
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x4404
callq 0x3280
movl (%rbx), %edi
movq %r14, %rsi
movl $0x10, %edx
callq 0x3070
cmpl $-0x1, %eax
je 0x44a5
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x8ba2(%rip), %rdi      # 0xcfd0
leaq 0x4bf6(%rip), %rsi      # 0x902b
callq 0x32a0
leaq 0x4e24(%rip), %rbx      # 0x9265
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32a0
leaq 0x4be4(%rip), %rsi      # 0x9037
movq %rax, %rdi
callq 0x32a0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32a0
leaq 0x4cfb(%rip), %rsi      # 0x9168
movq %rax, %rdi
callq 0x32a0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32a0
movq %rax, %rdi
movl $0x19, %esi
callq 0x34a0
leaq 0x4dd0(%rip), %rsi      # 0x9264
movq %rax, %rdi
callq 0x32a0
leaq 0x4cda(%rip), %rsi      # 0x917d
jmp 0x4521
movq 0x8b24(%rip), %rdi      # 0xcfd0
leaq 0x4b78(%rip), %rsi      # 0x902b
callq 0x32a0
leaq 0x4da6(%rip), %rbx      # 0x9265
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32a0
leaq 0x4b66(%rip), %rsi      # 0x9037
movq %rax, %rdi
callq 0x32a0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32a0
leaq 0x4c7d(%rip), %rsi      # 0x9168
movq %rax, %rdi
callq 0x32a0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x32a0
movq %rax, %rdi
movl $0x23, %esi
callq 0x34a0
leaq 0x4d52(%rip), %rsi      # 0x9264
movq %rax, %rdi
callq 0x32a0
leaq 0x4c6b(%rip), %rsi      # 0x918c
movq %rax, %rdi
callq 0x32a0
movq %rax, %rdi
callq 0x3150
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3350
jmp 0x4548
jmp 0x4543
jmp 0x4548
jmp 0x4543
movq %rax, %rbx
jmp 0x4559
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x4559
callq 0x3280
movq %rbx, %rdi
callq 0x34b0
nop