projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc83b6c
)
Return socket info in different order.
author
Pekka Riikonen
<priikone@silcnet.org>
Wed, 14 Feb 2007 14:45:07 +0000
(14:45 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Wed, 14 Feb 2007 14:45:07 +0000
(14:45 +0000)
lib/silcutil/silcsocketstream.c
patch
|
blob
|
history
diff --git
a/lib/silcutil/silcsocketstream.c
b/lib/silcutil/silcsocketstream.c
index a617f45c2fffb3d376fb19e55cdd3445a93a2b66..0cd45ce2eb2cab0c3bd6a404843d4a441028c427 100644
(file)
--- a/
lib/silcutil/silcsocketstream.c
+++ b/
lib/silcutil/silcsocketstream.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2005 - 200
6
Pekka Riikonen
+ Copyright (C) 2005 - 200
7
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-261,20
+261,20
@@
SilcBool silc_socket_stream_get_info(SilcStream stream,
if (sock)
*sock = socket_stream->sock;
if (sock)
*sock = socket_stream->sock;
- if (
hostname
) {
- if (!socket_stream->
hostname
)
+ if (
port
) {
+ if (!socket_stream->
port
)
return FALSE;
return FALSE;
- *
hostname = socket_stream->hostname
;
+ *
port = socket_stream->port
;
}
if (ip) {
if (!socket_stream->ip)
return FALSE;
*ip = socket_stream->ip;
}
}
if (ip) {
if (!socket_stream->ip)
return FALSE;
*ip = socket_stream->ip;
}
- if (
port
) {
- if (!socket_stream->
port
)
+ if (
hostname
) {
+ if (!socket_stream->
hostname
)
return FALSE;
return FALSE;
- *
port = socket_stream->port
;
+ *
hostname = socket_stream->hostname
;
}
return TRUE;
}
return TRUE;