Posted: Sun Jan 01, 2006 5:18 pm Post subject: 4 sessions simultanous
Hi,
I would like to know how to creating a tcpip program with 4 sessions, actually i have a bug ... if i put a do / loop i can't check if others sessions are sending datas, simple because i can't exit the loop ... i tried with a timer but i have the others bugs, i check a lot of examples and i never see an example for multi sessions, it's the same thing for web server!!!
Can we do have a software with 4 sessions or it's just for fun???!!!!
Someone have a little example or idea????
Thank you for your answer
maxspeed
.
.
.
Case Sock_established ' Val 6
Result = Socketstat(channelx , Sel_recv) ' get number
Peer = Getdstip(channelx)
In_ip = Ipnum(peer)
In_ip = "Votre adresse IP est: " + In_ip + ", Port: " + Str(getdstport(0)) + ", Channel: " + Str(channelx)
Print "in_ip"
Result = Tcpwritestr(channelx , In_ip , 255) ' send welcome
If Result > 0 Then
==> Do
Result = Tcpread(channelx , S)
Print "Data from client: " ; " " ; S
If Lcase(s) = "exit" Then
Closesocket Channelx
End If
===> Loop Until Result = 0
End If
.
.
.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum