From WikiChip
Editing mirc/on events/on udpwrite

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|On Udpwrite - Events}}
+
The '''ON UDPWRITE''' is an event which was added in mIRC with UDP, but never has been documented. The event was meant to be used as the {{mIRC|on sockwrite} event for TCP, however, something fucked up and the actual design ended up being that on sockwrite triggers for UDP socket if no error happened while on udpwrite will trigger if an error occured.
The '''ON UDPWRITE''' is an event which was added in mIRC with UDP, but never has been documented. The event was meant to be used as the {{mIRC|on sockwrite}} event for TCP, however the actual design ended up being that:
 
* on sockwrite triggers for UDP socket if no error happened
 
* on udpwrite will trigger if an error occurred.
 
  
 +
'''Note''': This behavior was changed for consistency and backward compatibility in mIRC 7.33:
  
'''Note:''' This behavior was changed for consistency and backward compatibility in mIRC 7.33:
+
-on udpwrite is no longer triggered.
* on udpwrite is no longer triggered.
+
-on sockwrite triggers for UDP socket regardless of the error state.
* on sockwrite triggers for UDP socket regardless of the error state.
 
  
 +
== Writting more ==
  
== Writing more ==
+
It is possible that the data hasn't sent successfuly, especially with UDP, you should be checking for error with {{mIRC|$sockerr} before trying to do anything, here is a list of the possible value for $sockerr in the on UDPWRITE event:
 
 
It is possible that the data hasn't sent successfuly, especially with UDP, you should be checking for error with {{mIRC|$sockerr}} before trying to do anything, here is a list of the possible value for $sockerr in the on UDPWRITE event:
 
  
 
* '''0''' - The data has been written sucessfuly.
 
* '''0''' - The data has been written sucessfuly.
Line 27: Line 23:
 
== Compatibility ==
 
== Compatibility ==
 
{{mIRC compatibility|5.5}}
 
{{mIRC compatibility|5.5}}
 
Removed: mIRC v7.33
 
 
Removed On:27/05/2014
 
  
 
== See Also ==
 
== See Also ==
Line 43: Line 35:
 
* {{mIRC|$sockerr}}
 
* {{mIRC|$sockerr}}
  
[[Category:mIRC on events|udpwrite]]
+
[[Category:MIRC on events|sockread]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)