diff options
author | Christoph Egger <Christoph.Egger@gmx.de> | 2010-04-07 22:00:13 +0200 |
---|---|---|
committer | Christoph Egger <Christoph.Egger@gmx.de> | 2010-04-07 22:00:13 +0200 |
commit | 46bf1cf82d855660c212ee3421dff3050ec8ffea (patch) | |
tree | f0fadfc004a86242ad096dee015ed7c20cc7f554 /include/SFML/Network | |
parent | 25177f23f35afa0e6ebdd63d581003c298d3a7df (diff) |
Imported Upstream version 1.6+repack1
Diffstat (limited to 'include/SFML/Network')
-rwxr-xr-x | include/SFML/Network/SocketTCP.hpp | 6 | ||||
-rwxr-xr-x | include/SFML/Network/SocketUDP.hpp | 6 |
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 ?
};
|