natPlainSocketImpl.cc (read, [...]): Formatting fixed.
2002-03-08 Adam Megacz <adam@xwt.org> * java/net/natPlainSocketImpl.cc (read, write, close): Formatting fixed. From-SVN: r50481
This commit is contained in:
parent
9445b81426
commit
0bf93ed48a
2 changed files with 12 additions and 4 deletions
|
@ -20,17 +20,20 @@ details. */
|
|||
#undef MIN_PRIORITY
|
||||
#undef FIONREAD
|
||||
|
||||
// stuff to make Win32 look POSIXy
|
||||
static inline int close(int s) {
|
||||
// These functions make the Win32 socket API look more POSIXy
|
||||
static inline int
|
||||
close(int s) {
|
||||
return closesocket(s);
|
||||
}
|
||||
|
||||
static inline int write(int s, void *buf, int len)
|
||||
static inline int
|
||||
write(int s, void *buf, int len)
|
||||
{
|
||||
return send(s, (char*)buf, len, 0);
|
||||
}
|
||||
|
||||
static inline int read(int s, void *buf, int len)
|
||||
static inline int
|
||||
read(int s, void *buf, int len)
|
||||
{
|
||||
return recv(s, (char*)buf, len, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue