I've a problem with receiving data on my PC by TCP and UDP. I can send data to another computer, but can't receive it.
I'm not shure where is the problem (on PC or on "another comupers")
This is client code:
;TCP client TCPStartup() $socket = TCPConnect("192.168.0.18", 7777) ;try to connect to server and save number of socket If $socket = -1 Then ;if $socket = -1 then error MsgBox(16, "Error:", "Can't connect to server") EndIf $sendedBytes = TCPSend($socket, "nothing here :)") ;send message to connected socket If $sendedBytes = 0 Then ;if receiving data TCPSend(...) = 0 then error MsgBox(16, "Error", "Can't send message") EndIf TCPCloseSocket($socket) TCPShutdown() and server code:
;TCP server TCPStartup() $mainsocket = TCPListen("192.168.0.18", 7777) ;making main receiving socket While 1 ;receiving loop $acceptedSocket = TCPAccept($mainsocket) ;possible connection to accept If $acceptedSocket <> -1 Then $receivedData = TCPRecv($acceptedSocket, 1024) ;if main socket is connected then receive message MsgBox(64, "Received message!", "Message: " & $receivedData) TCPCloseSocket($acceptedSocket) ;close open connecion EndIf WEnd TCPShutdown()
When server is on PC I can't receive any messages from any other computers.
When client is on PC I can receive messages on any another computer.
I tried to turn off antiviruses and windows firewall but it did't change anything
Error code from client from TCPConnect is 10060 (connection time out) and from TCPSend: 10038
I've found something about 10060 error code, Microsoft says "Connection timed out. A connection attempt failed because the connected party did not properly respond after a period of time, or the established connection failed because the connected host has failed to respond."
So it means that the problem is with time of response but it makes no sense couse "another computer" is Virtual Machine with bridge internet connection from PC (pings beetwen PC and VM are lower than 1ms.
About 10038 error code microsoft says that this is problem with socket and it actually makes sense.
Hi I have an idea of creating a parental filter (freeware) , which will be protecting children from navigating to adult websites. I want to ask, what is your opinion, how to do it best way?
How to catch the traffic from the very beginning?
For example if a user is starting IE or Firefox, or if he has some alternate BLABLA-browser - how can I catch the url before actual navigation to website, so that my script could first check if the website is ok, and then if it decides that the website is not ok, just block connection to this IP.
Looking forward to your opinions, Great thanx in advance!
I started working on this program in the summer then I stopped cause I faced some problems I couldn't overcome back then. Now that I've practiced more and have become a better scripter/programmer I'm releasing the program to the public to get some opinions. I know it's not a new concept but it's the first program I started besides some small stuff I did just for practice! I won't post the source code yet because it's still under construction, although I'm sure I've posted early stages of the code with bugs in the past in some topic...
What I wanted was a simple, small, serverless program that would work without installation cause I wanted it for where I work, so I ended up with this!
I have attached some images of various versions, also visit the forum thread.
The package includes s!mpL3 LAN Messenger, the License Agreement and the change log.
Current version 22.214.171.124! [30/09/2015]
Check the Change Log below!
Read the license before using this software.
Im hoping some could help me out.
I'm using an IM client that sends messages via UDP.
I was wondering is there a way I could make a button with a pre canned message to send to all online users automatically E.g "about to get coffee place your oder" send to all online
Saves sending to one person at a time.
After looking into it more, there are scripts on the forum that do the job i need all i have to do edit them to my needs
Recently I upgraded my AutoIt and since then this script has caused problems.
Func MonitorOpenVPNTunnel ($UDPLogReceiver) If $UDPLogReceiver <> 0 Then $received = UDPRecv($UDPLogReceiver,16000) If @error And (@error <> 10040) Then InternalErrorMsgBox("UDPRecv",@error) Could any experienced user of UDP tell me if there is some change in the UDPRecv function that could explain an error coming up as soon as I run the compiled program.
This is the code that makes the $UDPLogReceiver
$UDPLogPort = Random(20000,65535,1) $UDPLogReceiver = UDPBind("127.0.0.1",$UDPLogPort) Could there be something new in UDPBind that would cause a problem?
Any fresh inspiration very welcome.