Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: blocking mode of recveive function  (Read 2096 times)

0 Members and 1 Guest are viewing this topic.

hammad khan

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
blocking mode of recveive function
« on: September 14, 2013, 09:31:50 pm »
Status sf::TcpSocket::receive    (    void *     data,  std::size_t     size,   std::size_t &  received )

Receive raw data from the remote peer.

In blocking mode, this function will wait until some bytes are actually received. This function will fail if the socket is not connected.

what does blocking mode mean, and how i can use this function without blocking mode?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: blocking mode of recveive function
« Reply #1 on: September 14, 2013, 11:05:42 pm »
Quote
what does blocking mode mean
In blocking mode, the function don't return until some data have been received. In other word, the function blocks the execution.

Quote
how i can use this function without blocking mode?
It is very well explained in the documentation and tutorials.
Laurent Gomila - SFML developer

 

anything