Not logged in. · Lost password · Register
Forum: XMPP Protocol RSS
Page: previous  1  2  3  4 
Avatar
Jabberer #46
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 1204
Hi,

why you don't send the packets in the order Alex suggested? If you don't wait for the response of your query for the proxy information then it really doesn't matter if it returns wrong results. or not. The wrong results are related to your wildfire configuration.

rali.shepherdmed.com resolves to your IP but not proxy.rali.shepherdmed.com. The subdomain for proxy must resolv as well. Without that another client will not be able to connect to your streamhost.
Software Developer
AG-Software
Avatar
scharfed #47
Member since Jul 2006 · 33 posts
Group memberships: Members
Show profile · Link to this post
Thank you for your help.  I can successfully connect to the streamhost and initiate a file transfer! :)

However,

If I try to send a file that is > 1024 bytes, the transfer hangs and does not continue.  Have you any idea of what could cause this issue to arise?

Thank you,

Scharfed
Avatar
Alex #48
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

no idea, what is your buffersize on the socket? How big are the chunks you read for files > 1024Bytes? I assume don't read the file at once in the memory and send it in small chunks.

Alex
Avatar
scharfed #49
Member since Jul 2006 · 33 posts
Group memberships: Members
Show profile · Link to this post
I'm not sure.  I havent done any editing to Simon's FileTransferUtils.cs, so I was curious whether or not anyone else had a similar issue.  Where do you set the buffersize on the socket?  As for the chunks I read for files > 1024 bytes, I found this code fragment in FileTransferUtils.cs:

if (lNumberOfBytes > 1024)
            {
                if (lNumberOfBytes < 1048576)
                {
                    strUnits = "KB";
                    fAdjusted = Convert.ToSingle(lNumberOfBytes) / 1024;
                }
                else
                {
                    strUnits = "MB";
                    fAdjusted = Convert.ToSingle(lNumberOfBytes) / 1048576;
                }
                sb.AppendFormat("{0:0.0} {1}", fAdjusted, strUnits);
            }

I hope you can help with the information I provided.
Avatar
Alex #50
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

this function only converts the size in bytes to a human readable number in KB or MB.

Alex
Avatar
Alex #51
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
we decided to add a file transfer to the MiniClient sample.
see: http://forum.ag-software.de/forum.php?req=thread&id=251
Avatar
Michael.ly #52
Member since Oct 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 1156
Subject: Please! How is setup s2s connections ?where is its install-program ?
Quote by Michael.ly:
Hello Alex,
i assume your server is not setup correctly for s2s connections and can't reach our server.
Make sure your server is setup for s2s connections, or make and account on our server and use it directly.
But this is only and assumption because i have not seen your XML Debug.

Alex
Question:
How is setup s2s connections or where is its install-program ?
I'm working on it
Avatar
Jabberer #53
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
This depends on the XMPP server you are using. Please look in the documentation of the server. Normally s2s is using port 5269, so make sure its open and forwarded in your firewall/router.
Software Developer
AG-Software
Avatar
imran #54
Member since Apr 2009 · 17 posts · Location: Germany
Group memberships: Members
Show profile · Link to this post
In reply to post ID 1140
Subject: File Transfer via MiniClient
Hello,

I want to transfer file via xmpp . I launched the two instances(on same computer) of MiniClient example in VS2008 and logged in to two accounts(jabber accounts,one account in jabber.org domain and other in jabber.com with offcourse diffrent user names to simulate two diffrent user) so that i could transfer file. Now here are questions:

1-I am unable to receive file the MiniClient didnt receive file ( as i am runing two instances on same computer with diffrent accounts(jabber accounts)one shows file sending and other file receiving).why i am not able to receive file? i tried between MiniClinet-MiniCleint and also between MiniClient and exodus?

2-In my project i am serializing the object(at moment it is binary data) if i need to serialize the object in xml format(using xmlserializer to send the serialize object via xmpp) ? or any format would work ?

Though for testing purpose i used an xml format file too but it didnt work

Help is needed in this regards

Thanks

Imran Khalid
Avatar
Alex #55
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in frmFileTranfer:

have you changed to constant PROXY to your server?

in SendStreamHosts uncomment the line to inlcude also all your interal ip addresses for file transfers.

  1. for (int i = 0; i < iphe.AddressList.Length; i++)
  2. {
  3.    Console.WriteLine("IP address: {0}", iphe.AddressList[i].ToString());
  4.    bsIq.Query.AddStreamHost(m_XmppCon.MyJID, iphe.AddressList[i].ToString(), 1000);
  5. }

Alex
Avatar
imran #56
Member since Apr 2009 · 17 posts · Location: Germany
Group memberships: Members
Show profile · Link to this post
Hello,
As posted earlier while transfering file between two miniclient instances runing on same computer i have following exception being thrown


"The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for"

at IPHostEntry ipHostInfo = Dns.Resolve(Address);

and in adress field value is "proxy.ag-software.de"

Help needed

Thanks
Avatar
Alex #57
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by imran:
"The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for"

at IPHostEntry ipHostInfo = Dns.Resolve(Address);

do you have more info about this exception, maybe a complete stacktrace. This can be a ipv4/ipv6 issue. The example is not prepared for ipv6.


Quote by imran:
and in adress field value is "proxy.ag-software.de"

this proxy is not public, you cannot use it.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page: previous  1  2  3  4