summaryrefslogtreecommitdiff
path: root/include/SFML/Network
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@gmx.de>2010-04-07 22:00:13 +0200
committerChristoph Egger <Christoph.Egger@gmx.de>2010-04-07 22:00:13 +0200
commit46bf1cf82d855660c212ee3421dff3050ec8ffea (patch)
treef0fadfc004a86242ad096dee015ed7c20cc7f554 /include/SFML/Network
parent25177f23f35afa0e6ebdd63d581003c298d3a7df (diff)
Imported Upstream version 1.6+repack1
Diffstat (limited to 'include/SFML/Network')
-rwxr-xr-xinclude/SFML/Network/SocketTCP.hpp6
-rwxr-xr-xinclude/SFML/Network/SocketUDP.hpp6
2 files changed, 8 insertions, 4 deletions
diff --git a/include/SFML/Network/SocketTCP.hpp b/include/SFML/Network/SocketTCP.hpp
index 964686a..8929dc9 100755
--- a/include/SFML/Network/SocketTCP.hpp
+++ b/include/SFML/Network/SocketTCP.hpp
@@ -214,8 +214,10 @@ private :
// Member data
////////////////////////////////////////////////////////////
SocketHelper::SocketType mySocket; ///< Socket descriptor
- std::vector<char> myPendingPacket; ///< Data of the current pending packet, if any (in non-blocking mode)
- Int32 myPendingPacketSize; ///< Size of the current pending packet, if any (in non-blocking mode)
+ Uint32 myPendingHeader; ///< Data of the current pending packet header, if any
+ Uint32 myPendingHeaderSize; ///< Size of the current pending packet header, if any
+ std::vector<char> myPendingPacket; ///< Data of the current pending packet, if any
+ Int32 myPendingPacketSize; ///< Size of the current pending packet, if any
bool myIsBlocking; ///< Is the socket blocking or non-blocking ?
};
diff --git a/include/SFML/Network/SocketUDP.hpp b/include/SFML/Network/SocketUDP.hpp
index 37df3f7..7cb6b19 100755
--- a/include/SFML/Network/SocketUDP.hpp
+++ b/include/SFML/Network/SocketUDP.hpp
@@ -215,8 +215,10 @@ private :
////////////////////////////////////////////////////////////
SocketHelper::SocketType mySocket; ///< Socket identifier
unsigned short myPort; ///< Port to which the socket is bound
- std::vector<char> myPendingPacket; ///< Data of the current pending packet, if any (in non-blocking mode)
- Int32 myPendingPacketSize; ///< Size of the current pending packet, if any (in non-blocking mode)
+ Uint32 myPendingHeader; ///< Data of the current pending packet header, if any
+ Uint32 myPendingHeaderSize; ///< Size of the current pending packet header, if any
+ std::vector<char> myPendingPacket; ///< Data of the current pending packet, if any
+ Int32 myPendingPacketSize; ///< Size of the current pending packet, if any
bool myIsBlocking; ///< Is the socket blocking or non-blocking ?
};