summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--context.h2
-rw-r--r--include/pso/TTcpSocket.h2
-rw-r--r--src/pso/TTcpSocket.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/context.h b/context.h
index 8851136..8772391 100644
--- a/context.h
+++ b/context.h
@@ -830,7 +830,7 @@ public:
virtual short send(u8 *data) override;
virtual int send(u8 *data, size_t size) override;
- int stat();
+ short stat();
int test_connection();
static void notify(short size, short sock_fd);
diff --git a/include/pso/TTcpSocket.h b/include/pso/TTcpSocket.h
index 9740a3a..8e8dab9 100644
--- a/include/pso/TTcpSocket.h
+++ b/include/pso/TTcpSocket.h
@@ -28,7 +28,7 @@ public:
virtual short send(u8 *data) override;
virtual int send(u8 *data, size_t size) override;
- int stat();
+ short stat();
int test_connection();
static void notify(short size, short sock_fd);
diff --git a/src/pso/TTcpSocket.cpp b/src/pso/TTcpSocket.cpp
index 71bdd99..5021fd6 100644
--- a/src/pso/TTcpSocket.cpp
+++ b/src/pso/TTcpSocket.cpp
@@ -146,7 +146,7 @@ int TTcpSocket::test_connection() {
void some_stub() {}
-int TTcpSocket::stat() {
+short TTcpSocket::stat() {
if (sock_fd() != -1) {
return tcp_stat(sock_fd(), &stat_val(), nullptr, &send_window(), &recv_window());
} else {