Is it possible to know which connection sent data wiht recv()?
Current setup is
- Main Thread spins and waits
- Thread 1 - do stuff unimportant to socket
- Thread 2 - accept() -> keep linked list of accetpted sockets
- Thread 3 - recv() -> can I know which IP addr/connection sent me the data I am currently reading?
Dim Adapter As New OleDbDataAdapter
Dim Command As New OleDbCommand
Dim xFrom As String = dtpFrom.Value.ToString.Substring(0, dtpFrom.Value.ToString.IndexOf(" "))
Dim xTo As String = dtpTo.Value.ToString.Substring(0, dtpTo.Value.ToString.IndexOf(" "))
sqlQuery = MainQuery ...