Exemplo n.º 1
0
        /// <summary>
        /// Creates a new DirectIM connection
        /// </summary>
        /// <param name="method">The <see cref="DirectConnectionMethod"/> to use for the transfer</param>
        /// <param name="role">The <see cref="DirectConnectRole"/> of the local client in the transfer</param>
        public DirectIMConnection CreateNewDirectIMConnection(DirectConnectionMethod method, DirectConnectRole role)
        {
            DirectIMConnection retval = new DirectIMConnection(_parent, _id++, method, role);

            _directconnections.Add(retval);
            return(retval);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new DirectIM connection
 /// </summary>
 /// <param name="method">The <see cref="DirectConnectionMethod"/> to use for the transfer</param>
 /// <param name="role">The <see cref="DirectConnectRole"/> of the local client in the transfer</param>
 public DirectIMConnection CreateNewDirectIMConnection(DirectConnectionMethod method, DirectConnectRole role)
 {
     DirectIMConnection retval = new DirectIMConnection(_parent, _id++, method, role);
     _directconnections.Add(retval);
     return retval;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new Direct IM from a screenname
 /// </summary>
 internal DirectIM(string screenname, DirectIMConnection connection)
     : base(screenname)
 {
     _connection = connection;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new DirectIMDataReader
 /// </summary>
 public DirectIMDataWriter(DirectIMConnection connection, DirectIM message)
 {
     _conn = connection;
     _fullbuffer = message.AttachmentsToByteArray();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new DirectIMDataReader
 /// </summary>
 public DirectIMDataReader(DirectIMConnection connection, DirectIM message)
 {
     _conn = connection;
     _conn.ReadPacketAsyncComplete += new ConnectionReadPacketHandler(_conn_ReadPacketAsyncComplete);
     _msg = message;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new DirectIMDataReader
 /// </summary>
 public DirectIMDataWriter(DirectIMConnection connection, DirectIM message)
 {
     _conn       = connection;
     _fullbuffer = message.AttachmentsToByteArray();
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new DirectIMDataReader
 /// </summary>
 public DirectIMDataReader(DirectIMConnection connection, DirectIM message)
 {
     _conn = connection;
     _conn.ReadPacketAsyncComplete += new ConnectionReadPacketHandler(_conn_ReadPacketAsyncComplete);
     _msg = message;
 }