// File: xjrueda[P]fixprime/src/SocketConnector.cpp
// Function: SocketConnector::SocketConnector(int)
SocketConnector::SocketConnector ( int port )
{
  if ( ! Socket::create() )
    {
      throw SocketException ( "Could not create server socket." );
    }

  if ( ! Socket::bind ( port ) )
    {
      throw SocketException ( "Could not bind to port." );
    }

  if ( ! Socket::listen() )
    {
      throw SocketException ( "Could not listen to socket." );
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x97100
movq -0xa0(%rbp), %rdi
movq 0x573e8(%rip), %rax     # 0x132d28
addq $0x10, %rax
movq %rax, (%rdi)
callq 0x9c4e0
movb %al, -0x93(%rbp)
jmp 0xdb954
movb -0x93(%rbp), %al
testb $0x1, %al
jne 0xdba2d
jmp 0xdb964
movb $0x1, -0x42(%rbp)
movl $0x20, %edi
callq 0x99e80
movq %rax, -0xb0(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0xa35e0
movq -0xa8(%rbp), %rdx
leaq 0x28203(%rip), %rsi     # 0x103b9a
leaq -0x40(%rbp), %rdi
callq 0xa0510
jmp 0xdb9a2
movq -0xb0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x9d000
jmp 0xdb9b4
movq -0xb0(%rbp), %rdi
movb $0x0, -0x42(%rbp)
movq 0x57632(%rip), %rsi     # 0x132ff8
movq 0x572c3(%rip), %rdx     # 0x132c90
callq 0xa2fe0
jmp 0xdbc18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0xdbc03
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0xdba0b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xa4f00
leaq -0x41(%rbp), %rdi
callq 0x9e350
testb $0x1, -0x42(%rbp)
jne 0xdba1c
jmp 0xdba28
movq -0xb0(%rbp), %rdi
callq 0x9b9c0
jmp 0xdbc03
movq -0xa0(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x9db40
movb %al, -0xb1(%rbp)
jmp 0xdba44
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0xdbb0c
jmp 0xdba54
movb $0x1, -0x6a(%rbp)
movl $0x20, %edi
callq 0x99e80
movq %rax, -0xc8(%rbp)
leaq -0x69(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0xa35e0
movq -0xc0(%rbp), %rdx
leaq 0x28133(%rip), %rsi     # 0x103bba
leaq -0x68(%rbp), %rdi
callq 0xa0510
jmp 0xdba92
movq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x9d000
jmp 0xdbaa4
movq -0xc8(%rbp), %rdi
movb $0x0, -0x6a(%rbp)
movq 0x57542(%rip), %rsi     # 0x132ff8
movq 0x571d3(%rip), %rdx     # 0x132c90
callq 0xa2fe0
jmp 0xdbc18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0xdbaea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xa4f00
leaq -0x69(%rbp), %rdi
callq 0x9e350
testb $0x1, -0x6a(%rbp)
jne 0xdbafb
jmp 0xdbb07
movq -0xc8(%rbp), %rdi
callq 0x9b9c0
jmp 0xdbc03
movq -0xa0(%rbp), %rdi
callq 0xa03e0
movb %al, -0xc9(%rbp)
jmp 0xdbb20
movb -0xc9(%rbp), %al
testb $0x1, %al
jne 0xdbbfa
jmp 0xdbb30
movb $0x1, -0x92(%rbp)
movl $0x20, %edi
callq 0x99e80
movq %rax, -0xe0(%rbp)
leaq -0x91(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0xa35e0
movq -0xd8(%rbp), %rdx
leaq 0x28069(%rip), %rsi     # 0x103bd2
leaq -0x90(%rbp), %rdi
callq 0xa0510
jmp 0xdbb77
movq -0xe0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x9d000
jmp 0xdbb8c
movq -0xe0(%rbp), %rdi
movb $0x0, -0x92(%rbp)
movq 0x57457(%rip), %rsi     # 0x132ff8
movq 0x570e8(%rip), %rdx     # 0x132c90
callq 0xa2fe0
jmp 0xdbc18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0xdbbd5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xa4f00
leaq -0x91(%rbp), %rdi
callq 0x9e350
testb $0x1, -0x92(%rbp)
jne 0xdbbec
jmp 0xdbbf8
movq -0xe0(%rbp), %rdi
callq 0x9b9c0
jmp 0xdbc03
addq $0xe0, %rsp
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0xa44b0
movq -0x18(%rbp), %rdi
callq 0xa3520
nopl (%rax,%rax)