131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
- (void)didResolve
{
[self join];
# ifdef OF_HAVE_BLOCKS
if (_block != NULL)
_block(_host, _port, _address, _exception);
# endif
else {
void (*func)(id, SEL, OFString*, uint16_t,
of_udp_socket_address_t, OFException*) =
(void(*)(id, SEL, OFString*, uint16_t,
of_udp_socket_address_t, OFException*))[_target
methodForSelector: _selector];
func(_target, _selector, _host, _port, _address, _exception);
|
<
>
|
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
- (void)didResolve
{
[self join];
# ifdef OF_HAVE_BLOCKS
if (_block != NULL)
_block(_host, _port, _address, _exception);
else {
# endif
void (*func)(id, SEL, OFString*, uint16_t,
of_udp_socket_address_t, OFException*) =
(void(*)(id, SEL, OFString*, uint16_t,
of_udp_socket_address_t, OFException*))[_target
methodForSelector: _selector];
func(_target, _selector, _host, _port, _address, _exception);
|