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

Author Topic: Socket Receive and Send at the same time (Threads)  (Read 2963 times)

0 Members and 1 Guest are viewing this topic.

Blackspell

  • Newbie
  • *
  • Posts: 4
    • View Profile
Socket Receive and Send at the same time (Threads)
« on: October 24, 2010, 01:08:57 am »
Is it possible to send and receive data on one socket(tcp) at the same time using two threads?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Socket Receive and Send at the same time (Threads)
« Reply #1 on: October 24, 2010, 10:32:21 am »
I don't think so.
Laurent Gomila - SFML developer

Blackspell

  • Newbie
  • *
  • Posts: 4
    • View Profile
Socket Receive and Send at the same time (Threads)
« Reply #2 on: October 24, 2010, 11:09:35 am »
Ok thanks for the fast reply  :)

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Socket Receive and Send at the same time (Threads)
« Reply #3 on: October 24, 2010, 12:27:45 pm »
I don't think it should be a big problem. However, access to a socket in multi-threaded environments should be encapsulated in one thread to minimize the possibility of side effects.