It's possible to connect to a FTP server with sockets in windows phone? If yes how can I implement it?
How do I provide the login and the password to the server?
Thank you.
In Windows Phone 7 (before Mango update) there were no sockets. In Mango update you can create an FTP client, yes. Note: it will always work in Passive mode. As for how you provide credentials - this is defined in RFC 959 (FTP protocol).
Unless you have good experience with sockets, I recommend using third-party component. Our SecureBlackbox includes FTP/FTPS component for Windows Phone 7 and /n software has FTP client in their IPWorks for WP7 product.
Related
I'm using Vista TN3270 as my emulator. I'm trying to submit JCL jobs to it using FTP. I'm trying to follow https://www.ibm.com/docs/en/zos/2.1.0?topic=jes-steps-submitting-job-automatically-receiving-output but I don't know how I can setup connection between my FTP and 3270 emulator.
You can't! TN3270 is IBM's 3270 Display Data Stream SNA protocol over TCP/IP. The emulator supports an own protocol for file transfer which is based on TSO/E IND$FILE. This has nothing to do with the FTP(S) protocol.
You need to use the FTP client on your PC to connect to the FTP server on the mainframe.
I want to make an application to get my notifications from an iphone through psoc 4 ble. I'm subscribing to ANCS service, i get the notifications, and after i want that data to send to windows to a java or c# application. What I don't know how to do or if it's possible: how do I make the connection between psoc and windows to send the data.
It calls Serial Communication (UART). You will have two pins Tx and Rx and using them you can easily communicate with windows using terminal applications such as PUTTY
Does your computer have bluetooth on it directly? If so you can use the microsoft API to call it here: https://msdn.microsoft.com/en-us/library/aa916530.aspx
else if your computer does not have bleutooth, you have to use the CySmart dongle and use the C# API cypress provides here: CySmart
Is that possible to force the ServerXMLHTTP to connect to internet through an existing windows socket?
For some reasons, I'm using VB6 winsock control and the winsock connected to a certain PC. I want to communicate with that PC in SSL protocol, but I need to implement too much thing to make winsock work properly like ServerXMLHTTP.
So, yes or no, can I force the ServerXMLHTTP (or event WinInet) to work using existing windows socket?
Here are a few options for implementing the SSL protocol with access through VB6/COM interfaces.
Expose COM interfaces around .NET Framework custom code and libraries for encryption and then call your .NET created COM interfaces from your VB6 application.
Utilize an off-the-shelf component that already has the SSL protocol implemented for you.
Implement the full SSL specification in VB6
After clarification about the need to use an "existing windows socket" I'll update the answer with more details.
I have setup a windows 2003 ftp server and using chilkat to connect to this ftp inside my customized application. My application is developed in VB6 with ftp support of chilkat. The application works on different places of the city and connects to my ftp. Unable to access ftp and transfer files using the customised application, from some networks like idea netsetter / bsnl. It works perfect on other networks.
Thanks in advance.
Regards,
Sam
This is likely to be a firewall issue at the client end. FTP is often blocked by firewalls.
Just as well, FTP has its problems making it a less than ideal alternative. There are better options such as SFTP or FTPS but support for those is limited in Windows and you'll have to buy both server and client pieces to use one of them.
Fewer firewalls block HTTP and HTTPS though some are finicky enough to block traffic that doesn't look like Web browsing. Stiil, your odds of success go up substantially.
An obvious choice might be to use WebDAV. IIS supports WebDAV and it is pretty easy to write simple WebDAV client logic in VB6 based on one of the many HTTP components available. I'd probably use XmlHttpRequest or WinHttpRequest for that. A search ought to turn up several VB6 classes written to wrap one of them to support WebDAV client operations. You can also buy WebDAV client libraries.
Stick to using HTTPS (which means you need a server cetificate for IIS) and you won't have passwords going over the network in the clear. Even if you use HTTP you'll be no worse off than using FTP, plus it'll work through the vast majority of firewalls except those that specifically block non-browsing HTTP requests.
This could be a firewall configuration on the Client or Server. You're not going to be able to do much about the client, but for the server it may depend on whether your doing Active or Passive FTP connections.
If you are doing Active connections, make sure ports 20 and 21 are open.
If you're doing Passive connections, you may want to check out this article about configuring the PassivePortRange in Server 2003 FTP- http://support.microsoft.com/?id=555022.
I'm in the process of porting an application to the Windows Phone platform. I spent quite a while reading MSDN documentation and I can'd find nothing on the subject.
Is it possible to create server sockets on Windows Phone? All I've found is related with client side, like creating connections to remote machines. I can't find nothing the other way: The phone acting as the server.
Some essential methods like Bind and Listen are not exposed by the Socket class included in the Windows Phone 7.1 SDK.
This was kind of a surprise to me.
Any help or confirmation on this will be truly appreciated!
Thanks in advance!
You cannot open a socket for listening from a Windows Phone 7 application. This is due primarily to the complexities of the cellular data networks, such as the use of transparent proxies, shared IP addresses, and frequent connection disruptions.
Until windows phone 8 you will not be able to listen on sockets, you have to use an intermediary service to listen/send between two or more phones.
Check this link, on windows phone 8, there is new API introduced for streamlistner
We are also trying at our end, should be possible
Class is StreamSocketListener
http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.networking.sockets.streamsocketlistener.aspx
I dont know about a "server" but it has UDP functionality and can send data through it and send/receive with TCP.
also, i have found the SDK to lack some APIs to interface with the phone. ex no Bluetooth or not being able to switch between internal and headphones for sound through developer programming.