Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
d7e25d85
Commit
d7e25d85
authored
Mar 31, 2004
by
Bill Hoffman
Browse files
ENH: compile for both windows and unix, I hope...
parent
df2b4813
Changes
1
Hide whitespace changes
Inline
Side-by-side
Parallel/vtkSocketCommunicator.cxx
View file @
d7e25d85
...
...
@@ -36,7 +36,7 @@
#define vtkCloseSocketMacro(sock) (close(sock))
#endif
vtkCxxRevisionMacro
(
vtkSocketCommunicator
,
"1.4
7
"
);
vtkCxxRevisionMacro
(
vtkSocketCommunicator
,
"1.4
8
"
);
vtkStandardNewMacro
(
vtkSocketCommunicator
);
//----------------------------------------------------------------------------
...
...
@@ -312,7 +312,11 @@ int vtkSocketCommunicator::GetPort(int sock)
{
struct
sockaddr_in
sockinfo
;
memset
(
&
sockinfo
,
0
,
sizeof
(
sockinfo
));
#if defined(_WIN32) && !defined(__CYGWIN__)
int
sizebuf
=
sizeof
(
sockinfo
);
#else
socklen_t
sizebuf
=
sizeof
(
sockinfo
);
#endif
if
(
getsockname
(
sock
,
(
sockaddr
*
)
&
sockinfo
,
&
sizebuf
)
!=
0
)
{
vtkErrorMacro
(
"No port found for socket "
<<
sock
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment