How to use H323FileTransfer classes?

Discussion related to implementation and use of the H.323 Plus H.323 stack at https://www.h323plus.org.
Post Reply
spart
Posts: 3
Joined: Wed Apr 02, 2014 12:24 pm

How to use H323FileTransfer classes?

Post by spart »

Hi, I'm trying to use a H323FileTransfer classes, but does not work :cry:
How can i do it?
Please help me! if only one small example...
spart
Posts: 3
Joined: Wed Apr 02, 2014 12:24 pm

Re: How to use H323FileTransfer classes?

Post by spart »

In the code, add capability
H323FileTransferCa pability mcap;
mcap.SetCapability Direction(H323Capability::e_ReceiveAndTransm it);
AddCapability(mcap);
then this capability, create a channel
H323FileTransferCh annel *cn = mcap.CreateChannel(connection, H323Channel::IsTransmitter, mcap.GetDefaultSes sionID(), NULL);
cn->Start();
and catch "Write error on data port (22)" in rtp.cxx
Why is this possible?
shorne
Posts: 45
Joined: Thu Aug 27, 2009 4:17 am

Re: How to use H323FileTransfer classes?

Post by shorne »

Error 22 is invalid argument when opening the socket. The RTP socket for filetransfer should no different to any other socket for RTP.

H323 file transfer is really prototype code and should be handled that way. Improvements are definitely welcome,
spart
Posts: 3
Joined: Wed Apr 02, 2014 12:24 pm

Re: How to use H323FileTransfer classes?

Post by spart »

shorne wrote:Error 22 is invalid argument when opening the socket. The RTP socket for filetransfer should no different to any other socket for RTP.

H323 file transfer is really prototype code and should be handled that way. Improvements are definitely welcome,
Thanks for the answer!
Post Reply