Skip to content
Browse files

doc

  • Loading branch information...
1 parent 02bb8a5 commit 73859116f89a733ac6664194394631e989d7a1d0 tong committed Jul 20, 2012
View
3 jabber/XMPPDebug.hx
@@ -43,7 +43,6 @@ class XMPPDebug {
static function __init__() {
//numPrinted = numPrintedIncoming = numPrintedOutgoing = 0;
- lastPrintWasOutgoing = false;
#if (flash||js)
#if (air||nodejs||rhino)
#else
@@ -65,7 +64,7 @@ class XMPPDebug {
//public static var numPrintedOutgoing(default,null) : Int;
/** */
- public static var lastPrintWasOutgoing(default,null) : Bool; //= false;
+ public static var lastPrintWasOutgoing(default,null) : Bool = false;
/**
Indicates if the XMPP debug output should get formatted/beautified.
View
2 jabber/client/GMailNotify.hx
@@ -31,7 +31,7 @@ import jabber.stream.PacketCollector;
*/
class GMailNotify {
- public static var XMLNS = "google:mail:notify";
+ public static var XMLNS(default,null) : String = "google:mail:notify";
public dynamic function onMail( m : Xml ) {}
View
7 jabber/jingle/WebRTCSDPCall.hx
@@ -21,9 +21,12 @@
*/
package jabber.jingle;
+import webrtc.PeerConnection;
import jabber.jingle.io.WebRTCSDPOutput;
import xmpp.IQ;
+//TODO: WebRTCInitializer (?)
+
/**
Experimental!
WebRTC SDP jingle session initiator.
@@ -57,12 +60,12 @@ class WebRTCSDPCall extends OutgoingSession<WebRTCSDPOutput> {
override function handleSessionInitResult() {
trace("handleSessionInitResult");
- /*
+
transport.__onConnect = handleTransportConnect;
transport.__onFail = handleTransportFail;
transport.connect();
onPeerConnection( transport.connection );
- */
+
}
override function handleSessionInfo( x : Array<Xml> ) {
View
4 jabber/jingle/io/WebRTCSDPTransport.hx
@@ -21,12 +21,14 @@
*/
package jabber.jingle.io;
+import webrtc.PeerConnection;
+
/**
Abstract
*/
@:require(js) class WebRTCSDPTransport extends Transport {
- /***/
+ /** STUN server to use */
public var stun_url(default,null) : String;
/** The transmitted SDP (Session description protocol) string */
View
4 jabber/sasl/AnonymousMechanism.hx
@@ -42,11 +42,11 @@ class AnonymousMechanism {
}
@:keep public function createAuthenticationText( user : String, host : String, pass : String, resource : String ) : String {
- return null; // Nothing to send in the <auth> body.
+ return null; // Nothing to send in the <auth> body
}
public function createChallengeResponse( c : String ) : String {
- return challengeResponse; // not required
+ return challengeResponse; // Not required
}
}
View
3 jabber/sasl/Mechanism.hx
@@ -21,6 +21,9 @@
*/
package jabber.sasl;
+/**
+ SASL mechanism.
+*/
typedef Mechanism = {
/** */
View
8 jabber/stream/Connection.hx
@@ -24,7 +24,7 @@ package jabber.stream;
import haxe.io.Bytes;
/**
- Abstract base class for stream connections.
+ Abstract base class for XMPP stream connections.
*/
class Connection {
@@ -49,7 +49,7 @@ class Connection {
/** Indicates if connected and ready to read and write. */
public var connected(default,null) : Bool;
- /** Indicates if this is a secure connection */
+ /** Indicates if this is a secure connection (TLS negotiation complete) */
public var secure(default,null) : Bool;
/** Indicates if TLS is negotiation is complete and data transfered is encrypted */
@@ -98,15 +98,15 @@ class Connection {
}
/**
- Sends a string, returns true on succeess
+ Send a string, returns true on succeess
*/
public function write( t : String ) : Bool {
#if JABBER_DEBUG trace( 'abstract method', 'error' ); #end
return false;
}
/**
- Send raw bytes
+ Send raw bytes, returns true on succeess
*/
public function writeBytes( t : Bytes ) : Bool {
#if JABBER_DEBUG trace( 'abstract method', 'error' ); #end
View
2 jabber/stream/DataFilter.hx
@@ -24,7 +24,7 @@ package jabber.stream;
typedef DataFilter = {
/**
- Filter incoming XMPP data before processing
+ Filter raw incoming data before processing
*/
function filterData( data : haxe.io.Bytes ) : haxe.io.Bytes;
View
2 jabber/stream/DataInterceptor.hx
@@ -24,7 +24,7 @@ package jabber.stream;
typedef DataInterceptor = {
/**
- Modify outgoing XMPP data before sending
+ Modify raw outgoing XMPP data before sending
*/
function interceptData( data : haxe.io.Bytes ) : haxe.io.Bytes;
}
View
2 jabber/stream/PacketInterceptor.hx
@@ -27,7 +27,7 @@ package jabber.stream;
typedef PacketInterceptor = {
/**
- Intercepts outgoing XMPP packet.
+ Intercepts outgoing XMPP packet before sending.
*/
function interceptPacket( p : xmpp.Packet ) : xmpp.Packet;
View
2 jabber/util/SHA1.hx
@@ -45,7 +45,7 @@ class SHA1 {
#if nodejs
var h = js.Node.crypto.createHash( "sha1" );
h.update( s );
- return h.digest( js.Node.HEX );
+ return h.digest( NodeC.HEX );
#elseif php
return untyped __call__( "sha1", s );

0 comments on commit 7385911

Please sign in to comment.
Something went wrong with that request. Please try again.