network-programming

Server-side network printing in java / grails

谁都会走 提交于 2020-01-11 12:33:29
问题 I am java / grails developer working on redesigning a software system. One of the requirements is to have a sever-side application send data to various network printers to print text data. I searched the web for info on java network printing, and came up short I looked into Java Print Service API, java.awt.print, javax.print and did not find anything on connecting to network printers. Is what I am trying to do possible or favorable. The lack of findings leads me to believe that sever-side

Is it possible to modify interface index

风格不统一 提交于 2020-01-11 12:22:50
问题 If the kernel decides to change the interface index for some reason, our userspace code cached interface index does not gets updated and it starts dropping the packet because their is mismatch between interface index cached in userspace and what is actually present in kernel. I've used if_indextoname(index, interfaceName) to solve this problem. Basically kernel knows which index maps to correct interface name. Now comes my requirement: I need to test my code. Is there a way by which I can

Which ports have to be open to communicate with Firebase Database (not FCM messaging)?

假装没事ソ 提交于 2020-01-11 11:41:32
问题 I have written a Windows service in C# which connects to the Firebase Database and stores data. For connection and database communication, I use a NuGet Packages called "FirebaseAuthentification.net" and "FirebaseDatabase.net", both by StepUp Labs, Inc. On my test system, everything works fine. On the customer's system, there are firewall/procy restrictions which deny communication. We already opened Port 443 and are able to send a request, but the answer does not arrive. Old GCM Doc says: If

What is a skeleton in a network?

走远了吗. 提交于 2020-01-11 11:37:47
问题 In a J2EE application, clients (applications, JSPs, servlets, JavaBeans) access entity beans via their remote interfaces. Thus, every client invocation potentially routes through network stubs and skeletons, even if the client and the enterprise bean are in the same JVM, OS, or machine. What's a network skeleton? Some kind of proxy? I understand a stub to be a single use connection, is that correct? 回答1: In RMI lingo, the skeleton is the generated object that sits on the server, accepts calls

TypeError - Client error in python

和自甴很熟 提交于 2020-01-11 11:21:51
问题 I created a Client/Server code in python. Server works well and get listen on 8000 port, but when I connect to it via client and then I try to send a message to server I get the following error: Traceback (most recent call last): File "C:\Users\milad\workspace\NetworkProgramming\client.py", line 26, in <module> if __name__ == "__main__" : main() File "C:\Users\milad\workspace\NetworkProgramming\client.py", line 20, in main TcpSocket.send(sendData) TypeError: 'str' does not support the buffer

read sniffing data over tcp

ぐ巨炮叔叔 提交于 2020-01-11 10:48:13
问题 i'm developing application that is listening to the data coming to the pc and store it in a db when i'm trying to use any sniffing software it decode the data and i can read it... but in my code ....i cant read it at all it come in a format like that

TCP/UDP Socket server on WAN

我怕爱的太早我们不能终老 提交于 2020-01-11 06:55:10
问题 I have written a socket server in c# that will be used as the basic design for a small game project I am part of. The socket server works fine on lan. I able to communicate completely fine between the server and the client. However on the WAN the server receives all the correct messages from the client, but the client receives no messages from the server. Both the client and the server are behind a router but only the server's router has the ports forwarded. When the client connects to the

Lazarus: How to list all the available network connection on a system?

主宰稳场 提交于 2020-01-11 06:44:29
问题 I am writing a program on a Linux system using Lazarus IDE. The program is supposed to connect to the Internet or Intranet. So, I want to display to the user list of all the available network connections that they can use to connect to the Internet or Intranet like wifi, if there are two active network cards on the system, then this program should display their available connections. At the moment, I don't know where to start or what tool(s) to use. Any hints, clues or advice will be greatly

Scan networks (SSID's) on iOS 7 by using private API

送分小仙女□ 提交于 2020-01-11 06:00:06
问题 Is it possible to get list of SSID's of networks around by using private API on iOS 7 Jailbroken device? I know about MobileWiFi.framework that manages WiFi functionality on iOS. (It replaces the obsolete Apple80211 framework.) Here is 4 years old answer how to use it: Accessing & Using the MobileWiFi.framework I tried to use these methods on iOS 7, but have no luck. In one of the comments of author of this solution I receive this answer: scanNetworks fails because that code is now 4 years

Detect any connected network

孤者浪人 提交于 2020-01-10 09:13:28
问题 How can I detect if any network adapter is connected? I can only find examples on using NSReachability to detect an internet connection, but I want to detect even a non-internet network connection. Getting the IP-adress on eth0 should work? I'm working on Mac only. 回答1: Getting a List of All IP Addresses in Apple's Technical Note TN1145 mentions 3 methods for getting the status of the network interfaces: System Configuration Framework Open Transport API BSD sockets System Configuration