// File: DoubleString[P]RtConverter/src/RtConverter/RtConverter.cpp
// Function: main
int main(int argc, char* args[]) {
	signal(SIGPIPE, SIG_IGN);
	Deploy::s_initInstance(argc,args);
	list<RtConverter*> rt_svrs;
	Deploy dly = Deploy::s_getConfigures();
	strinitcom();

	RtConverter rtconv_nrtk(5,dly.nrtkport,RtConverter::ConvType::obsbin);
	RtConverter rtconv_rtk(10,dly.rtkport, RtConverter::ConvType::obsbnc);
	RtConverter rtconv_eph(1, dly.ephport, RtConverter::ConvType::eph);
	RtRinexStream poststr;
	VrsNtripClient vrsstr;
	rt_svrs.push_back(&rtconv_nrtk);
	rt_svrs.push_back(&rtconv_rtk);
	rt_svrs.push_back(&rtconv_eph);

	/// post observation 
	poststr.openStream(rt_svrs);
	/// vrs observation 
	vrsstr.openStream(rt_svrs);

	/// server thread 
	rtconv_nrtk.beginProcess();
	rtconv_rtk.beginProcess();
	rtconv_eph.beginProcess();
	while (true) {
		Deploy::s_updateConfigures();
		sleepms(5000);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e7020, %rsp         # imm = 0x1E7020
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0xd, %edi
movl $0x1, %esi
callq 0x98f0
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x55060
leaq -0x28(%rbp), %rdi
callq 0x550e0
leaq -0x2068(%rbp), %rdi
callq 0x4f7c0
jmp 0x53dfb
callq 0x9d2f0
jmp 0x53e02
movl -0x2014(%rbp), %edx
leaq -0xa2fe0(%rbp), %rdi
movl $0x5, %esi
movl $0x1, %ecx
callq 0x51a30
jmp 0x53e20
movl -0x2018(%rbp), %edx
leaq -0x143f48(%rbp), %rdi
movl $0xa, %esi
xorl %ecx, %ecx
callq 0x51a30
jmp 0x53e3b
movl -0x2010(%rbp), %edx
leaq -0x1e4eb0(%rbp), %rdi
movl $0x1, %esi
movl $0x2, %ecx
callq 0x51a30
jmp 0x53e59
leaq -0x1e4ef8(%rbp), %rdi
callq 0x55100
leaq -0x1e6ff0(%rbp), %rdi
callq 0x55130
jmp 0x53e73
leaq -0xa2fe0(%rbp), %rax
movq %rax, -0x1e6ff8(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x1e6ff8(%rbp), %rsi
callq 0x551a0
jmp 0x53e93
leaq -0x143f48(%rbp), %rax
movq %rax, -0x1e7000(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x1e7000(%rbp), %rsi
callq 0x551a0
jmp 0x53eb3
leaq -0x1e4eb0(%rbp), %rax
movq %rax, -0x1e7008(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x1e7008(%rbp), %rsi
callq 0x551a0
jmp 0x53ed3
leaq -0x1e4ef8(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x434e0
jmp 0x53ee5
leaq -0x1e7020(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x551e0
jmp 0x53ef7
leaq -0x1e6ff0(%rbp), %rdi
leaq -0x1e7020(%rbp), %rsi
callq 0xae890
jmp 0x53f0c
leaq -0x1e7020(%rbp), %rdi
callq 0x44f10
leaq -0xa2fe0(%rbp), %rdi
callq 0x51e90
jmp 0x53f26
leaq -0x143f48(%rbp), %rdi
callq 0x51e90
jmp 0x53f34
leaq -0x1e4eb0(%rbp), %rdi
callq 0x51e90
jmp 0x53f42
jmp 0x53f44
jmp 0x53f46
callq 0x4f850
jmp 0x53f4d
movl $0x1388, %edi           # imm = 0x1388
callq 0x8f910
jmp 0x53f59
jmp 0x53f44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2070(%rbp)
movl %eax, -0x2074(%rbp)
jmp 0x54042
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2070(%rbp)
movl %eax, -0x2074(%rbp)
jmp 0x54036
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2070(%rbp)
movl %eax, -0x2074(%rbp)
jmp 0x5402a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2070(%rbp)
movl %eax, -0x2074(%rbp)
jmp 0x5401e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2070(%rbp)
movl %eax, -0x2074(%rbp)
jmp 0x54006
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2070(%rbp)
movl %eax, -0x2074(%rbp)
jmp 0x53ffa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2070(%rbp)
movl %eax, -0x2074(%rbp)
leaq -0x1e7020(%rbp), %rdi
callq 0x44f10
leaq -0x1e6ff0(%rbp), %rdi
callq 0xae700
leaq -0x1e4ef8(%rbp), %rdi
callq 0x43390
leaq -0x1e4eb0(%rbp), %rdi
callq 0x51ac0
leaq -0x143f48(%rbp), %rdi
callq 0x51ac0
leaq -0xa2fe0(%rbp), %rdi
callq 0x51ac0
leaq -0x2068(%rbp), %rdi
callq 0x4f750
leaq -0x28(%rbp), %rdi
callq 0x44f10
movq -0x2070(%rbp), %rdi
callq 0x9d20
nopw (%rax,%rax)