client-server

Socket vs HTTP based communication for a mobile client/server application

旧时模样 提交于 2019-12-20 09:58:29
问题 I've recently decided to take on a pretty big software engineering project that will involve developing a client-server based application. My plan is to develop as many clients as possible: including native iPhone, Android and Blackberry Apps as well as a web-based app. For my server I'm planning on using a VPS (possibly from slicehost.com) running a flavor of Linux with a MySQL database. My first question is what should be my strategy for clients to interface with the server. My ideas are:

curl: (58) Unable to load client key -8178

隐身守侯 提交于 2019-12-20 09:49:09
问题 I am facing an SSL issue with the curl command. I want to reach an URL using my SSL client certificate and private key. This is my command: $ curl -k -v "https://myurl.com/" --cert ./certificate.pem --key ./private.key * About to connect() to xx.xx.xx.xx port 23444 (#0) * Trying xx.xx.xx.xx... connected * Connected to xx.xx.xx.xx (xx.xx.xx.xx) port 23444 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * warning: ignoring value of ssl.verifyhost * Unable to load client key -8178. *

iOS client-server app: HTTP or TCP/IP?

大憨熊 提交于 2019-12-20 09:47:18
问题 I am about to start designing/developing a client-server iOS app. I am leaning towards using HTTP requests to get/post data from/to a server, but want to make sure this is the right decision. What are the benefits of using sockets over http requests. Are sockets faster? One reason I am leaning towards http is that I also want to have a web interface as well as iOS interface. If I create PHP web services that the iOS and web application can both access, then I believe I am reducing development

Accessing virtual host from computer on same local network

余生颓废 提交于 2019-12-20 08:30:37
问题 I am trying to make a setup so that I can access my website on a virtual host in computer A from computer B. Both A and B are on the same network. I am using xampp on Win 7. So here is as the problem goes computer A(server) has a virtual host configuration as follows in the httpd-vhosts.conf file. NameVirtualHost project:81 <VirtualHost project:81> DocumentRoot "D:/work/website" ServerName project:81 <Directory "D:/work/website"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride

how to get know the client port and ip address in client socket program in java [closed]

耗尽温柔 提交于 2019-12-20 07:26:33
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I created a multiple client- server communication in java using socket. i have a single server and a client. i want to test my program with multiple clients. i m planning to create a simulator which dynamically

ServerSocket java not reading inputStream?

匆匆过客 提交于 2019-12-20 06:31:33
问题 I have written a server is java here is the code: public mainClass() { try { ss = new ServerSocket(8080); while (true) { socket = ss.accept(); System.out.println("It is accept!"); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); //out = new PrintWriter(socket.getOutputStream(),true); line = in.readLine(); System.out.println("you input is :" + line); //out.close(); in.close(); socket.close(); } } catch (IOException e) { } and I am using an iPhone application as the

ServerSocket java not reading inputStream?

与世无争的帅哥 提交于 2019-12-20 06:30:10
问题 I have written a server is java here is the code: public mainClass() { try { ss = new ServerSocket(8080); while (true) { socket = ss.accept(); System.out.println("It is accept!"); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); //out = new PrintWriter(socket.getOutputStream(),true); line = in.readLine(); System.out.println("you input is :" + line); //out.close(); in.close(); socket.close(); } } catch (IOException e) { } and I am using an iPhone application as the

running a client/server prog on a single system

坚强是说给别人听的谎言 提交于 2019-12-20 05:30:14
问题 im wondering if there are two programs, one called server and the other called client and these two are illustrating a server and client respectively, is it possible to test them in one machine? considering i defined the client socket as follow: socket = new Socket("127.0.0.1",3000); Edit: Server part: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; class TCPServer {

How to make WCF client use the same data types as the WCF service

回眸只為那壹抹淺笑 提交于 2019-12-20 04:28:09
问题 I have a .NET WCF service that services only .NET WCF clients (all .NET 3.5, no interoperability, via TCP, binary encoding). Using svcutil.exe the composite types that are used by the data members of the service are generated as part of the proxy.cs class used by the clients. However, what to do if I wanted to reference the same types declared on the server/WCF side? Scenario: three assemblies: client.exe, wcfobjects.dll and wcfservice.dll --> the wcfservice.dll references wcfobjects.dll -->

Can I avoid duplicating my business layer? (.NET)

寵の児 提交于 2019-12-20 04:15:10
问题 I have a tech demo application to write, with multiple clients: web client (ASP MVC 3), desktop client (currently it'll be a WCF app, planning to spice it up to Metro later) and a mobile client (Wp7 is the default task, but if I feel like a time-millionaire, I might try MonoDroid too) I was thinking using WCF for the clients. I was thinking using EF Model First for back-end. However my problem arises when I try to figure out where do I put my domain logic (validation, computed properties, etc